我在客户端启用了 Windows 7 64 位、Powershell 2.0 和 CredSSP
Enable-WSManCredSSP -Role Client -DelegateComputer * -Force
我打开 Powershell 控制台,并执行 Enter-PSSession 命令以使用 CredSSP 身份验证连接 Windows 2008 Server:
Enter-PSSession -Computername ServerMOSS -Authentication Credssp -Credential MyDomain\installerUser
我想远程执行 Get-WSManCredSSP 命令,但我收到错误:“...使用协商身份验证时:发生未知安全错误。”
PS C:\Users\myUser> Enter-PSSession -Computername ServerMOSS -Authentication Credssp -Credential MyDomain\installerUser
[ServerMOSS]: PS C:\Users\installerUser\Documents> Get-WSManCredSSP
WinRM cannot process the request. The following error occured while using Negotiate authentication: An unknown security
error occurred.
Possible causes are:
-The user name or password specified are invalid.
-Kerberos is used when no authentication method and no user name are specified.
-Kerberos accepts domain user names, but not local user names.
-The Service Principal Name (SPN) for the remote computer name and port does not exist.
-The client and remote computers are in different domains and there is no trust between the two domains.
After checking for the above issues, try the following:
-Check the Event Viewer for events related to authentication.
-Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or us
e HTTPS transport.
Note that computers in the TrustedHosts list might not be authenticated.
-For more information about WinRM configuration, run the following command: winrm help config.
+ CategoryInfo :
+ FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.GetWSManCredSSPCommand
[ServerMOSS]: PS C:\Users\installerUser\Documents> Exit-PSSession
IT部门在ServerMOSS中执行这个命令:
PS C:\Users\installerUser\Documents> enabled-psremoting -force
他们得到错误:
WinRM already is set upt to receive requests on this machine
Set-WSManQuickConfig: WinRM cannot process the request. The following error occured while using Negotiate authentication: An unknown security error ocurred.
有什么建议么?