繁体   English   中英

远程会话中的Powershell Active Directory模块

[英]Powershell Active Directory Module in Remote Session

嗨,有人对如何使Active Directory模块在远程ps会话中工作有任何经验吗? 我尝试执行的所有操作似乎都没有效果。 我在计算机之间的远程连接正常且可以正常运行,并且它们已加入域。 可以说我这样做

$Session = New-PSSession -ComputerName DC01
Invoke-Command -Session $Session {Import-Module Active Directory}
WARNING: Error initializing default drive: 'Unable to contact the server. This
may be because this server does not exist, it is currently down, or it does not
 have the Active Directory Web Services running.'.

如果我直接登录到服务器,则可以正常工作。 还尝试创建一个SessionConfiguration,并告诉它加载AD模块,但那里也没有运气。

可能是可怕的“双跳身份验证”问题。 由于已经设置了会话配置,因此可以尝试向其中添加-RunAs并查看它是否开始工作:

http://www.vinithmenon.com/2012/11/delegated-administration-in-windows.html

我找到了解决我问题的方法。 我再次从头开始在服务器上和客户端上启用了CredSSP,现在它可以正常工作了:)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM