Datasheet

UNDERSTAND HOW POWERSHELL AND ACTIVE DIRECTORY WORK TOGETHER 45
Administering
Service Delivery
PART I
As mentioned earlier, the AD PowerShell module requires either a Windows Server
2008 R2 domain controller or a Windows Server 2003/2008 domain controller run-
ning ADMG. If there are none available, you’ll receive an error when attempting to
import the module stating that a server with ADWS can’t be found.
A er the module loads successfully, you can begin using the Active Directory cmd-
lets. To view a listing of the Active Directory cmdlets added by the module, run the
following PowerShell commands:
PS C:\> $module = Get-Module ActiveDirectory
PS C:\> $module.ExportedCmdlets | ft Key
Key
---
Add-ADComputerServiceAccount
Add-ADDomainControllerPasswordReplicationPolicy
Add-ADFineGrainedPasswordPolicySubject
Add-ADGroupMember
Add-ADPrincipalGroupMembership
Clear-ADAccountExpiration
Disable-ADAccount
Disable-ADOptionalFeature
Enable-ADAccount
Enable-ADOptionalFeature
Get-ADAccountAuthorizationGroup
Get-ADAccountResultantPasswordReplicationPolicy
Get-ADComputer
Get-ADComputerServiceAccount
Get-ADDefaultDomainPasswordPolicy
Get-ADDomain
Get-ADDomainController
Get-ADDomainControllerPasswordReplicationPolicy
Get-ADDomainControllerPasswordReplicationPolicyUsage
Get-ADFineGrainedPasswordPolicy
Get-ADFineGrainedPasswordPolicySubject
Get-ADForest
Get-ADGroup
Get-ADGroupMember
Get-ADObject
Get-ADOptionalFeature
Get-ADOrganizationalUnit
Get-ADPrincipalGroupMembership
c01.indd 45c01.indd 45 5/12/2011 1:07:56 PM5/12/2011 1:07:56 PM