我有一个窗户101909年建筑18363。机器,下面是我观察到的。这都是在具有提升权限的powershell上进行的。
PS C:\Users\mohit.thakral> Test-WSMan -ComputerName localhost
wsmid : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
ProductVendor : Microsoft Corporation
ProductVersion : OS: 0.0.0 SP: 0.0 Stack: 3.0
PS C:\Users\mohit.thakral> Test-WSMan -ComputerName myhostname
Test-WSMan : <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150858770" Machine="myhostname.company.com"><f:Message>The client cannot
connect to the 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 WinRM. If the destination is the WinRM service, run the following command on the destination
to analyze and configure the WinRM service: "winrm quickconfig". </f:Message></f:WSManFault>
At line:1 char:1
+ Test-WSMan -ComputerName myhostname
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (dsw024166:String) [Test-WSMan], InvalidOperationException
+ FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.TestWSManCommand我已经检查了防火墙,我的winrm侦听器正在监听所有的ips。winrm qc也能工作。
还有什么其他的问题。
发布于 2020-09-19 19:59:38
所以,修正就是这个setspn -f -q */mymachinename。似乎不知何故,我的凭据不允许我连接到任何服务器的winrm。在运行此setspn -f -q */mymachinename之后,它修复了它
https://serverfault.com/questions/1017835
复制相似问题