//Add Local users on Windows Command Line

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!!

By |2008-11-28T13:34:39+00:00November 28th, 2008|Articles|0 Comments

About the Author: