PowerShell and the Quest Active Directory cmdlets are a dream come true for any AD Administrator. Methods that used to take more complicated means are now simple one-liners.
One of the nice improvements of AD cmdlets 1.0.4 is the way you can get enable, disable, and unlock AD user accounts with simple one-liners.
Here are a few oneliners demonstrating the new functionality:
#Get all disabled accounts
Get-QADUser -Disabled $true
#Get all locked accounts in the accounting department
Get-QADUser -Locked $true -Department Accounting#Enable all the disabled accounts
Get-QADUser -Disabled $true | Enable-QADUser#Unlock a specific user account
Unlock-QADUser DSotnikov


















0 Responses to “Active Directory Account Management using PowerShell”