Install the Active Directory module for Windows PowerShell
The Active Directory module for Windows PowerShell is already installed on domain controllers. If you are using a member server, you will have to install it.
To install the Active Directory module for Windows PowerShell
Open an elevated PowerShell session on a Windows server in the domain and run the following command:
Add-WindowsFeature RSAT-AD-PowerShell
When the installation finishes it returns the following:
Once installed, on Windows Server 2012 and 2012 R2 the module automatically loads when you use one of its cmdlets; you do not need to import it.