User Creator

A really small script to allow creation of users by list. It creates them and adds to a local group to allow remote access. Use a file to list all users, one user on each line.

@echo off

for /f %%A in (\\path\userlist.txt) DO (

Echo Creating %%A...

NET USER %%A Citibank01 /ADD /active:YES /expires:"never"

Echo Adding %%A to Remote Desktop Users...

NET LOCALGROUP "Remote Desktop Users" %%A /add