Remote powershell issue

Status
Not open for further replies.

Aatos

Ars Tribunus Militum
2,639
I can't get remote powershell to work with a Hyper-V 2012 R2 server, when I try to use Enter-PSSession or Invoke-Command, I get this error:

Code:
Enter-PSSession : Connecting to remote server hv2012r2.aatos.com failed with the following error message : The WSMan service could not launch a host process to process the given request.  
Make sure the WSMan provider host server and proxy are properly registered. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ hv2012r2.aatos.com -Credential aatos\aatos
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (hv2012r2.aatos.com:String) [Enter-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : CreateRemoteRunspaceFailed

All machines are in domain, Enable-psremoting configuration is done on server and I've verified that port 5985 is open. PS Remoting works fine with other non-R2 Hyper-V 2012 servers in this domain and there is not much information about this specific error on google. Not sure what to check next, maybe someone more experienced can help?
 

Aatos

Ars Tribunus Militum
2,639
[url=http:/civis/viewtopic.php?p=28691467#p28691467:3gcz7rt2 said:
locolocol[/url]":3gcz7rt2]Check winrm services?

Https://technet.microsoft.com/en-us/lib ... 49873.aspx

Tested all four local/remote examples, all return ok response :(

Code:
wsmid           : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
ProductVendor   : Microsoft Corporation
ProductVersion  : OS: 6.3.9600 SP: 0.0 Stack: 3.0
 
Firewall? Easiest to check your firewall software (Edit: You mention the server is domain controlled, so maybe you use a 3rd party software firewall vendor, but someone enabled Windows firewall via group policy), but also

netstat -a | findstr 5986

to make sure that winrm in indeed listening to 5986. Also port scan the server from your client machine to make sure that your client machine can see 5986.
 
Status
Not open for further replies.