I ran the following lines on both the client and server.
Enable-WSManCredSSP -Role client -DelegateComputer *
Enable-WSManCredSSP -Role server
Then the "new-pssession -authenticate CredSSP ..." command always returned:
"New-PSSession : [serverB] Connecting to remote server serverB failed with the following error message : There are currently no logon servers available to service the logon request."
Later I ran this command on the server side:
winrm quickconfig -transport:https -force
Then the "new-pssession -authenticate CredSSP ..." command always returned:
[serverB] Connecting to remote server serverB failed with the following error message : The WinRM client received an HTTP server error status (500), but the remote service did not include any other information about the cause of the failure.
I tried all kind of settings on both of the client and server but no any success. The PowerShell is V3. The client machine is a Windows 7 and the server machines I tried are Windows 2008 R2 and Windows 8 RP. All machines are in the same domain.
What else I can do? Thanks for any advice.