I need to create a list of local users that are sequential on Windows Server 2003.
Using ServerFault I was able to find out the proper commands to a) create a user and b) assign that user to a localgroup.
My commands would be:
net user myUserName /random /add /comment:"9.13.2011" /expires:never /fullname:"My User Name" /passwordchg:no
Adding that user to ‘Remote Desktop Users’ group:
net localgroup "Remote Desktop Users" myUserName /add
The username would start at myUserName1 and would iterate up to myUserName100.
Is it possible to use a windows batch (or cmd) file to iterate through these two commands to create my user list?
Are you looking for something like this?