Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 330 Bytes

ACTIVE-DIRECTORY.md

File metadata and controls

12 lines (9 loc) · 330 Bytes

Active Directory from Windows

# Reset password of a user on AD
Set-ADAccountPassword USER -Reset -NewPassword (Read-Host -AsSecureString -Prompt 'New Password') -Verbose

# Force change password on logon
Set-ADUser -ChangePasswordAtLogon $true -Identity USER -Verbose

# Update groups policies
gpupdate /force