I can not connect to remote machines using powershell. I have done the following procedures:
- enabled - PSRemoting-Force
- Set items WSMan: \ localhost \ Client \ TrustedHosts *
- Enter the restart-service - PSSession IpAddress
When I run the last step (4th) from my server machine, I get an error:
< / P> >
I have tried all 4 steps above both client and server machine Please help
Thanks Prav
Remote Check the port on the machine
PS Z: & gt; CD WSMN: \ Localhost \ Listener / PSWSMAN: \ Localhost \ Listener & gt; DIR
[Cut]
PSWSMAN: \ Localhost \ lister & gt; CD. \ Listener_1084132640
PSWSMN: \ Localhost \ lister / lisner_1084132640 & gt; Dir
WSManConfig:
Microsoft.WSMan.Management \ WSMan :: localhost \ listener_ listener_1084132640
Price of name --------- Address *
Transportation HTTP
Port 5985
then connect to the correct port
$ remotePowerShellPort = $ 5985 ConnectionURI = ("http: // {0}: { 1} "- $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $$$$$$$$$$$$$$$$$
Comments
Post a Comment