Skip to content

AD User properties

Read all properties

Get-ADUser -Identity foo -Properties *

Set property

# value PasswordExpired will be changed automatically
Set-ADUser -Identity foo -PasswordNeverExpires $true

Enable account

Enable-ADAccount -Identity foo