【问题标题】:Powershell remoting only with domain account仅使用域帐户进行 Powershell 远程处理
【发布时间】:2017-10-13 16:18:27
【问题描述】:

我试图在同一个域中的两个 Windows 2016 服务器之间创建一个 PSSESSION。 PSremoting 已启用并且 Test-Wsman 工作正常。 我想使用 -credentials 参数提供的目标机器的本地管理员帐户进入目标机器上的远程会话。但如果我使用域帐户,它就可以工作。 所以:

New-PSSession Targetmachine -Credential <credentials from domain\MemberOfLocalAdminGroup> 

工作很好,但是

New-PSSession Targetmachine -Credential <credentials from targetmachine\localadmin> 

没有。为什么?

后者导致错误:Connecting to remote server xxxxxxx failed with the following error message : WinRM cannot process the request. The following error with errorcode 0x8009030e occurred while using Kerberos authentication: There are currently no logon servers available to service the logon request.

【问题讨论】:

  • 很可能是 GPO 造成的

标签: powershell powershell-remoting winrm


【解决方案1】:

尝试使用其他身份验证机制 - BasicCredsspDigest

New-PSSession Targetmachine -Authentication <Basic | Credssp | Digest> -Credential <credentials from targetmachine\localadmin>

默认使用Kerberos,并且由于targetmachine\localadmin不是域用户,它会失败。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-09-24
    • 1970-01-01
    • 1970-01-01
    • 2013-11-07
    • 1970-01-01
    • 2019-01-13
    • 1970-01-01
    相关资源
    最近更新 更多