Its sometimes necessary to create/add local users and add them to local groups, like administrators. Doing this as part of a Task Sequence, I find it’s easiest to use the NET command. 

Here is the syntax for user=User01 with password=Password01 (Must run after “Setup Windows and ConfigMgr” Step)


Create user:

CMD.exe /c net user /add User01 Pssword01

Delete user:

CMD.exe /c net user /delete User01

Add user to the administrators group:

cmd.exe /c net localgroup /add administrators User01

Set Password to newer expires: (this can not be done using Net User)

cmd.exe /c WMIC USERACCOUNT WHERE “Name=’User01′” SET PasswordExpires=FALSE