Add Local Users on Windows Command Line

28 November 2008
by Billy Czajkowska

I was recently involved in a project where the requirement was to migrate from one server to another.  Part of the requirement was to create all the local users from the previous server to the new server, and later add them to TeamSite.  Initially I thought this may not take long.  However, this was not the case.  I received the number of users, and this came to 800+ users.  I thought this is going to take ages to do!
However, after doing a bit of research I found the command line tool to add local users
NET USER username password /ADD /FULLNAME:”fullname
e.g.
NET USER vealimy oSEinfam /ADD /FULLNAME:”Linda Myllerup”
From this I added this to my create_user Perl script, which in turn created all the users within hour, rather then weeks!!

Our Latest News