Tuesday, 10 August 2021

Useful CMD commands

Notes to myself for quick reference.

Check User account Locked
    net user UserID /DOMAIN | FIND /I Account Active

Unlock User
    Net user UserID /DOMAIN /active:YES

Change Password
    net user UserID newpassword /DOMAIN /Active:Yes

Check User Details, AD group membership
    net user UserID /do

Check AD Group Details, Member if this Group
    net group GroupID /do