O'Reilly logo

Windows PowerShell™ 3.0 Step by Step by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16 quick reference

To

Do this

Find domain FSMO role holders

Use the Get-ADDomain cmdlet and select PDCEmulator, RIDMaster, and InfrastructureMaster.

Find forest FSMO role holders

Use the Get-ADForest cmdlet and select SchemaMaster and DomainNamingMaster.

Rename a site in AD DS

Use the Get-ADObject cmdlet to retrieve the site and the Rename-ADObject cmdlet to set a new name.

Create a new user in AD DS

Use the New-ADUser cmdlet.

Find locked-out user accounts in AD DS

Use the Search-ADAccount cmdlet with the -lockedout switch.

Unlock a user account in AD DS

Use the Unlock-ADAccount cmdlet.

Set a user’s password in AD DS

Use the Set-ADAccountPassword cmdlet.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required