こんにちは、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 モジュールをロードするように指示しましたが、運もありませんでした。