Add local account of goat with password of T@styHay!
net user /add goat T@styHay!
Now add the goat account to the local administrators group
net localgroup administrators /add goat
View members of the local administrators group and make sure your new account is there
net localgroup administrators
Once you’re done, it’s polite to delete your account.
net user /delete goat
Other handy account management
Show all users on the local box
Disable an account
Enable an account
Change a users password
net user
Disable an account
net user goat /active:no
Enable an account
net user goat /active:yes
Change a users password
net user goat T@styAlfalfa!
ถ้าไม่ได้ลอง Net user test test
(Apply to all accounts)
wmic UserAccount set PasswordExpires=False
OR
(Apply to specific local account)
wmic UserAccount where Name="user name" set PasswordExpires=False