Collections:
Other Resources:
"New-PSSession" Cmdlet Error in Windows PowerShell
Why I am getting the "new-pssession : [...] Connecting to remote server ... failed" error in Windows PowerShell?
✍: FYIcenter.com
Sometimes, when you try to create a PSSession on a remote computer, you get an error
as shown in the following example:
PS C:\fyicenter> New-PSSession office-server
new-pssession : [office-server] Connecting to remote server
office-server 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.
At line:1 char:1
+ new-pssession office-server
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace)
[New-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CannotConnect,PSSessionOpenFailed
The main reason for this error is that the remote computer is not running Windows Remote Management (WinRM).
Follow the next tutorial to enable WinRM on the remote computer.
⇒ Enable WinRM for Remote Computer with Windows PowerShell
⇐ "New-PSSession" Cmdlet in Windows PowerShell
2016-10-15, ∼7766🔥, 0💬
Popular Posts:
What are Mozilla FireFox 2 add-ons? Mozilla FireFox 2 add-ons extend the browser functionalities. So...
What files are stored in the "C:\Users\<userid >\AppData\Local\M icrosoft\Windows\Tempor. ..
Can I disable Windows service "Smart Card Helper" to speedup my computer? Windows service "Smart Car...
What is the scheduled task "\G2MUpdateTask-S-1-5-21 -..."on my Windows 7 computer? "\G2MUpdateTask-S...
What is the scheduled task "\Microsoft\Windows\Wini net\CacheTask"on my Windows 7 computer? "\Micros...