Hello everyone,
I connect to a remote server using powershell when the following error:
Enter-PSSession: connect to remote server failed with the error message is as follows: WS-Management service can not process the request. In the WS-Management catalog information found
Source URI (http://schemas.microsoft.com/powershell/Microsoft.PowerShell). This catalog contains the description of resources, or logical endpoint metadata. For more
Detailed information, see the Help topic about_Remote_Troubleshooting.
Location Line: 1 Char: 16
+ Enter-PSSession <<<< -ComputerName localhost -Credential administrator
+ CategoryInfo : InvalidArgument: (localhost:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed
I've tried the following:
or a remote server that is running a Full Installation of Windows Server 2008 R2
Method 1
Log on as an administrator to the remote server by using the console or by using Remote Desktop Services.
Start Server Manager.
On the Server Summary page, click Configure Server Manager Remote Management.
Click Enable remote management of this server from other computers, and then click OK.
Connect to the remote server by using Server Manager.
Note You do not have to restart the remote server.
Method 2
Log on as an administrator to the remote server by using the console or by using Remote Desktop Services.
Open an elevated Command Prompt window.
At the command prompt, type the following command, and then press ENTER:
winrm quickconfig
Connect to the remote server by using Server Manager.
Original Address: support.microsoft.com/kb/976839/en-us
Finally, no way, try restarting your computer. .
PS C:\Users\Administrator> winrm enumerate winrm/config/listener
Listener
Address = *
Transport = HTTP
Port = 5985
Hostname
Enabled = true
URLPrefix = wsman
CertificateThumbprint
ListeningOn = 127.0.0.1,
telnet 5985 port is working
PS C:\Users\Administrator> Get-PSSessionConfiguration
Name PSVersion StartupScript Permission
---- --------- ------------- ----------
Microsoft.PowerShell 2.0
Microsoft.PowerShell32 2.0 BUILTIN\Administrators AccessAll...
microsoft.ServerManager 2.0 BUILTIN\Administrators AccessAll...
My 2 servers Systems: Microsoft Windows Server 2008 R2 Enterprise, is not joined to a domain, the working group is: WORKGROUP
Still can not be used. . . .
In this question for help. . .