Enable Remoting
-
Tuesday, November 06, 2012 9:18 AM
Hi,
I've a problem to connect to some Windows Server 2008 R2 Servers. I followed the Microsoft insturctions to enable/configure all needed services. (firewall disabled aswell druing the tests) http://technet.microsoft.com/en-us/library/hh847850.aspx
For some reason it doesnot work on some servers, when I try to connect via "Enter-PSSession -computername Ba001" (Ps run as Admin) I get the following error:
Enter-PSSession : Connecting to remote server failed with the following error message : The client cannot connect to th
e 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 Win
RM. 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:16
+ Enter-PSSession <<<< Ba001
+ CategoryInfo : InvalidArgument: (Ba001:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailedAs the Ms document says, I have enabled/configured WinRM and check WinRM, WsMan. I also tried the command Enable-PSRemoting which replied all servies are already configured for Remoting. (Firewall disaled during the tests)
Has anyone an idea why it does not work?
BR
Thank you
..next time we eat bacon
All Replies
-
Tuesday, November 06, 2012 11:29 AM
$pcName = "[computer name]" $c = (Get-WmiObject -List -ComputerName $pcName | where {$_.name -eq 'win32_process'}) $c.Create("cmd /c winrm qc -force") $c.Create("powershell Enable-PSRemoting -Force")- Marked As Answer by exit1337 Tuesday, November 13, 2012 9:18 AM

