首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >测试-WSMan与本地主机一起工作,但不适用于完全限定的域名或主机名。

测试-WSMan与本地主机一起工作,但不适用于完全限定的域名或主机名。
EN

Server Fault用户
提问于 2020-05-19 19:20:31
回答 1查看 974关注 0票数 0

我有一个窗户101909年建筑18363。机器,下面是我观察到的。这都是在具有提升权限的powershell上进行的。

代码语言:javascript
复制
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也能工作。

还有什么其他的问题。

EN

回答 1

Server Fault用户

发布于 2020-09-19 19:59:38

所以,修正就是这个setspn -f -q */mymachinename。似乎不知何故,我的凭据不允许我连接到任何服务器的winrm。在运行此setspn -f -q */mymachinename之后,它修复了它

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1017835

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档