Sunday, April 11, 2021

Creating new Windows admnistrator user from the command line

Creating new Windows admnistrator user from the command line

I am not quite comfortable with too few options available when creating a new user in Windows 10 Home edition, so I do the following.

c:\> net user timus P@$$w0rd123!@# /add /Passwordchg:No
c:\> WMIC USERACCOUNT WHERE "Name='timus'" SET PasswordExpires=FALSE
c:\> net localgroup administrators timus /add

No comments:

QNX: Running a function at specific interval using timer interrupt

#include <iostream> #include <csignal> #include <ctime> #include <cerrno> #include <cstring> #include <unis...