前回の記事では Windows Server 2008 R2 で PowerShell を使用する方法を紹介しました。 今回は、PowerShell で Active Directory専用のモジュールを使用する方法を紹介します。 まず、PowerShell コンソールを起動して、次のコマンドを実行します。 Import-Module ActiveDirectory 以上で Active Directory専用のコマンドレットを使用することが可能になります。 では、どのようなコマンドレットがあるかを確認してみましょう。 Get-Command -Module ActiveDirectory 全部で76個のコマンドレットが表示されます。 これで PowerShell から Active Directory を操作することが可能になりました。 ただし、Import-Module コマンドは実行
![[Active Directory] Active Directory モジュールを使用する](https://cdn-ak-scissors.b.st-hatena.com/image/square/e353acb666cbc8996b2e61113927d6cbcf3683b2/height=288;version=1;width=512/http%3A%2F%2Fblog.powershell-from.jp%2Fwp-content%2Fuploads%2F2019%2F11%2FPowerShellFormJapan.png)