Question Locked

Automatic account creation on standalone XP machine

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi all,

I hope someone can help me here.

I'm trying to automatically create a couple of user accounts on a standalone (i.e. no network) XP machine. I want to do it automatically as a number of machines need the same accounts so I'd like to be able to run something on each machine to create the accounts for me. Everything I've come across creates account in the active directory, not locally.

Any ideas?
Thanks in advance.
Graham

6 replies

by graham.beek

Thanks for the reply.

I've added another bit I found to create a group, as you suggested. However, I get unspecified error 80004005 on the SetInfo line. On looking at the XP machine I want to create the account on, it says in the help for User Accounts that groups don't exist on standalone machines, these have account types which are either Administrators or Limited. Have I got the wrong end of the stick? Have I missed the stick entirely?!

Cheers,
Graham

by ic-it

If the systems are logged on with an admin account then try something like this;

@echo off

echo adding account
net user Billy Password /add

This will add the user Billy with a password of Password.

Copy that into notepad and sve it as either a .bat or .cmd

by graham.beek

That sounds remarkably simple! I'll give that a go as well.

I've now got a bit further with the error. I hardcoded the computer name in and it now works, if I use a preset variable it doesn't. Not sure why yet, but anyway....

I can create the accounts and if I run the script again it tells me the accounts already exist and I can even log in with those accounts. So far, so good. What's strange though is that the User Accounts part in Control Panel doesn't list them. I've added AccountDisabled=FALSE as well, but still no joy.

All ideas welcome!
Graham

by ic-it

won't show them until you close the User Account applet and re-open it. Computer Management will display after a Refresh (or F5).

This discussion is closed to new replies.