Import activedirectory module

To use AD modules in PowerShell you need to turn on the feature in windows.

  1. Open control panel and click on Turn windows features on or off
  2. Find Active Directory module for Windows Powershell and enable

ad-module

Now open powershell and type:

Import-Module activedirectory

Leave a comment