Datasheet

UNDERSTAND HOW POWERSHELL AND ACTIVE DIRECTORY WORK TOGETHER 53
Administering
Service Delivery
PART I
Windows 7 doesn’t include the RSAT feature by default.  erefore, youll need to
download and install these tools before you can enable the Active Directory module
on Windows 7. You can download RSAT from Microso s website at the following
URL:
www.microsoft.com/downloads/en/details.aspx?FamilyID=
7d2f6ad7-656b-4313-a005-4e344e43997d
.
A er you install RSAT, you can use the following steps to install the Active
Directory module in Windows 7:
1. Click the Start menu, and select Control Panel.
2. In the Control Panel, click Programs and then Turn Windows Features On Or
O . e Windows Features dialog opens.
3. In the Windows Features dialog, browse to Remote Server Administration Tools
Role Administration Tools
AD DS And AD LDS Tools. Select the Active
Directory Module For Windows PowerShell check box, and then click OK.
Use an Older Client for Administration
e Active Directory module can only be installed on Windows 7 and Windows
Server 2008 R2. However, because of the remoting capabilities in PowerShell v2,
you can use an older client operating system to manage Active Directory with the
Active Directory PowerShell module.
To accomplish this, you’ll still need a computer in the environment with the Active
Directory PowerShell module installed. On your older client machine, you’ll need
to install PowerShell 2.0 and Windows Remote Management 2.0, which you can
download from Microso s website at the following URL:
http://support
.microsoft.com/kb/968929
. Establish a remote PowerShell session between
your older client and the server that has the Active Directory module installed, and
the Active Directory module cmdlets will be proxied on your client.  is means
you’ll type the command into your client, but it will really execute on the computer
with the Active Directory module.
Follow these steps to administer Active Directory with an older client:
1. Create a remote session from your client by executing the following command:
$session = New-PSSession -ComputerName MgtServer01
2. Import the Active Directory module into the remote session:
Invoke-Command { Import-Module ActiveDirectory } -Session i
$session
c01.indd 53c01.indd 53 5/12/2011 1:07:58 PM5/12/2011 1:07:58 PM