Windows 7 WinRM

  • Thread starter Thread starter Sk JafirAli
  • Start date Start date
S

Sk JafirAli

I have two Windows 7 Computer.

Can Not Connect to remote PowerShell and getting this error message


nvoke-command -computername XXXXXX -scriptblock {
get-process} -credential administrator
[XXXXXXX] Connecting to remote server XXXXXX failed with the
following error message : The WinRM client cannot process the request. If the
authentication scheme is different from Kerberos, or if the client computer is
not joined to a domain, then HTTPS transport must be used or the destination
machine must be added to the TrustedHosts configuration setting. Use winrm.cmd
to configure TrustedHosts. Note that computers in the TrustedHosts list might
not be authenticated. You can get more information about that by running the
following command: winrm help config. For more information, see the
about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: XXXXXX [], PSRemotingT
ransportException
+ FullyQualifiedErrorId : ServerNotTrusted,PSSessionStateBroken
PS C:\windows\system32>




PS C:\Users\Administrator> Invoke-Command -ComputerName XXXX -ScriptBlock {get-process} -credential administrator
[XXXXXX] Connecting to remote server XXXXX failed with the following
error message : The client cannot connect to the destination specified in the
request. Verify that the service on the destination is running and is accepting
requests. Consult the logs and documentation for the WS-Management service running
on the destination, most commonly IIS or WinRM. If the destination is the WinRM
service, run the following command on the destination to analyze and configure the
WinRM service: "winrm quickconfig". For more information, see the
about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (XXXXX:String) [], PSRemotingTranspo
rtException
+ FullyQualifiedErrorId : CannotConnect,PSSessionStateBroken



# Outbound connection is fine as I can connect to different machine here. However Incoming Connection Does not work

# Have Tried Multiple Things like "Enable-PSRemoting -Force". and it starts Properperly

# And since I have put the machine in workgroup run the command as well "Set-Item wsman:\localhost\client\trustedhosts *" (This runs successfully as well)

# Infact WinRM QuickConfig does not work.

# And have tried with and without firewall. and also applied Multiple hotfixes but did not resolve the issue


Please advise

Continue reading...
 

Similar threads

Back
Top