Microsoft’s focus on PowerShell is enormous nowadays. Moreover, in the latest release of Windows 2012, all administrative tasks uses PowerShell in background.
For those who are still using Windows Server 2008 R2 as domain controller you can install this PowerShell module by adding Active Directory module for Windows PowerShell feature from Add Features wizard.
For those who are still using Windows 2003 or Windows 2008 domain controller please follow the below steps to configure your domain controller
1. Install .Net Framework 3.5 Sp1
2. Install KB969166 from http://support.microsoft.com/kb/969166
3. Install NDP35SP1-KB969166 fromhttp://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=20556
4. Install Active directory management gateway service (Windows6.0-KB968934) fromhttp://www.microsoft.com/en-us/download/details.aspx?id=2852 . You must restart your dc after installing this KB
After installing this KB please check whether Active Directory Web Services is running in your domain controller
Windows 7 Configuration
To use Windows PowerShell Active Directory module in Windows 7 please follow the below steps
1. Install Remote Server Administration Tools for Windows 7 with Service Pack 1 (SP1) (http://www.microsoft.com/en-us/download/details.aspx?id=7887)
2. From your windows 7 pc go to Control Panel\All Control Panel Items\Programs and Features
2. Click on Turn Windows features on or off from the left bar
3. Select Active Directory Module for Windows PowerShell and click OK
4. Now you can access the module from your Administrative tools
5. Now you are ready to run AD commandlets as below
Error initializing default drive: ‘unable to find a default server with active directory web services running’
If you see such error please check whether your ADWS (Active directory web services) service is running in domain controller or not.