我试图让 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)