meepmaker
asked on
Anyone got a vbs script to create multiple user accounts (local) ?
Hi,
I need a generic .vbs script to run on non-Active Directory servers (Windows 2003) to create multiple local user accounts. I found a vbs script that references a excel spreadsheet with 2 columns (Username; Password) - this worked well when I tested on my XP desktop, which had excel installed. Unfortunately all of the servers I need to create the multiple accounts do not have excel installed, so this script didn't work.
Therefore it would be great if anyone could suggest a script to run which could reference a text file etc. It would also be useful if the script included the appropriate switch for the account passwords not expire.
Sorry, I'm not a scripter, so this is a bit of a challenge for me & I've got a deadline.
Thanks...
I need a generic .vbs script to run on non-Active Directory servers (Windows 2003) to create multiple local user accounts. I found a vbs script that references a excel spreadsheet with 2 columns (Username; Password) - this worked well when I tested on my XP desktop, which had excel installed. Unfortunately all of the servers I need to create the multiple accounts do not have excel installed, so this script didn't work.
Therefore it would be great if anyone could suggest a script to run which could reference a text file etc. It would also be useful if the script included the appropriate switch for the account passwords not expire.
Sorry, I'm not a scripter, so this is a bit of a challenge for me & I've got a deadline.
Thanks...
forgot to change the computer name. You can set it to "." so it does not need to be changed for each server.
ASKER
Thanks rlandquist,
However, I was looking to state the passwords associated with each account created. I'll be creating the same 20 accounts on 22 servers. From what I can see on the script you gave it states the password to be the same "test" for every user. I would then have to reset the password for each account. The servers I intend to run this on hold sensitive data and therefore they have to be unique or at.
However, I was looking to state the passwords associated with each account created. I'll be creating the same 20 accounts on 22 servers. From what I can see on the script you gave it states the password to be the same "test" for every user. I would then have to reset the password for each account. The servers I intend to run this on hold sensitive data and therefore they have to be unique or at.
I can modify for different passwords. You did not specify that, so I did not know it was a requirement.
How many accounts are you creating?
How many accounts are you creating?
ASKER
Sorry, 20 accounts are being created on each server, & each will have a different password.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent concise answer.
Open in new window