服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

远程Powershell不工作,但testing-swman做

我需要编写一些例程任务来远程执行从serverA到多个主机,但其中有一些却无法执行脚本。 如果我执行这个: $cred = Get-Credential myUser Invoke-Command -ComputerName serverB -ScriptBlock{gci d:\} -Credential $cred 或这个: Test-WSMan -ComputerName ServerB -Credential $cred -Authentication Negotiate 我得到以下错误 [SeverB]连接到远程服务器ServerB失败,并显示以下错误消息:WinRM无法处理请求。 使用协商身份validation时发生错误代码0x80090322的以下错误:发生未知的安全错误。 可能的原因是: – 指定的用户名或密码无效。 -Kerberos用于没有authentication方法和用户名没有指定。 -Kerberos接受域用户名,但不接受本地用户名。 – 远程计算机名称和端口的服务主体名称(SPN)不存在。 – 客户端和远程计算机处于不同的域,两个域之间没有信任。 检查上述问题后,请尝试以下操作: – 检查与事件查看器相关的身份validation事件。 – 更改authentication方法; 将目标计算机添加到WinRM TrustedHostsconfiguration设置或使用HTTPS传输。 请注意,TrustedHosts列表中的计算机可能未经过身份validation。 – 有关WinRMconfiguration的更多信息,请运行以下命令:winrm help config。 有关更多信息,请参阅about_Remote_Troubleshooting帮助主题。 + CategoryInfo:OpenError:(serverB:String)[],PSRemotingTransportException + FullyQualifiedErrorId:-2144108387,PSSessionStateBroken 但是当我单独使用test-wsman时: Test-WSMan -ComputerName ServerB wsmid […]