ネットで拾ったスクリプトを動かそうとしたら全然うまくすすまない。設定上の問題が多数あり。
スクリプトの実行がシステムで無効になっているため、ファイル C:\scripts\test.ps1 を読み込めません。詳細については、「get-help about_signing」と入力してヘルプを参照してください。
下記のコマンドを実行してモジュールにサインする。
set-ExecutionPolicy RemoteSigned
The term 'Get-ADUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
The term ‘Get-ADUser’ is not recognized as the name of a cmdlet
import-module activedirectory