May 2019
Intermediate to advanced
620 pages
21h 41m
English
Use the following lines of PowerShell on a system with the Active Directory Module for Windows PowerShell installed to enable a user object:
Import-Module ActiveDirectoryUnlock-ADAccount -Identity "CN=User,CN=Users,DC=lucernpub,DC=com"
To unlock all locked-out accounts throughout the Active Directory domain, combine the commands from the Finding locked-out accounts recipe with the preceding lines in the following way:
Import-Module ActiveDirectorySearch-ADAccount -LockedOut -UsersOnly | Unlock-ADAccount
Read now
Unlock full access