Datasheet

54 CHAPTER 1
•
USING POWERSHELL WITH ACTIVE DIRECTORY
3. Export the AD cmdlets from the remote session into a local copy of the
module.  e following example references all the cmdlets that contain
-AD
in
the name:
Export-PSSession -Session $session -CommandName *-AD* i
-OutputModule LocalADModule -AllowClobber
4. Import the local module that you just created:
Import-Module LocalADModule
A er you follow these steps, you should be able to execute the Active Directory
cmdlets from your older Windows client. Remember, though, that the cmdlet itself
will really be run from the machine with which you establish the remote session.
c01.indd 54c01.indd 54 5/12/2011 1:07:58 PM5/12/2011 1:07:58 PM