Archive

Posts Tagged ‘script’

Windows – Set User Account Details

October 9, 2008 scripthacks Leave a comment

The Windows built in command “net user” allows modification of local account settings.   

: Creates account and sets password + user full name & description
net user <username> <password> /ADD /fullname:"name" /comment:"description"
 
: Set Account Password to never expire and add account description
net user <username> /EXPIRES:NEVER /COMMENT:"<comment>"

:D isable Account
net user <username>  /ACTIVE:NO

:D elete Account
net user <username>  /DELETE

:Full net user configuration flags and options
net user /help