小编Mat*_*att的帖子

Powershell 使用 CNAME 远程处理到服务器,而不是计算机名称

我试图让 powershell 远程处理使用它的 CNAME 而不是计算机名称与服务器一起工作。本地和远程机器都在同一个网络和域中。

我启用了 powershell 远程处理,并且它与计算机名称一起工作正常。我已将 TrustedHosts 设置为 CNAME 并为 CNAME 添加了 SPN,但是当我发出时,Enter-PSSession CNAME我得到以下信息:

Enter-PSSession : Connecting to remote server CNAME failed with the following
error message : WinRM cannot process the request. The following error
occurred while using Kerberos authentication: Cannot find the computer CNAME.
Verify that the computer exists on the network and that the name
provided is spelled correctly. For more information, see the
about_Remote_Troubleshooting Help topic.
Run Code Online (Sandbox Code Playgroud)

执行setspn -l COMPUTERNAME给了我这个:

Registered …
Run Code Online (Sandbox Code Playgroud)

powershell windows-server-2008

9
推荐指数
1
解决办法
7020
查看次数

标签 统计

powershell ×1

windows-server-2008 ×1