簡體   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