VBScript

Hoober

Diamond Member
Feb 9, 2001
4,388
37
91
All,

I'm looking for some sort of scripting language that will allow the creation of a user account within Windows 2000 via a script. Specifically, I need something that will add a user to the admin group in Windows 2000 via a script.

Any ideas, links, thoughts?

Thanks.
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
You can use ADSI with VBScript. This is the first link that I came up with. I've used it a few years back to do what you're asking. That should get you started...
 

Hoober

Diamond Member
Feb 9, 2001
4,388
37
91
Thanks for the link. It looks like that is just for Active Directory, though. I'm looking to add a user on a local machine after it has been imaged and I don't want to put the account in the image.

 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
You can use ADSI from NT4, as the article suggests. That's primarily where I used it back in '98 or so as a web interface to the domain's user manager. It worked well.

Note that gdtaylor's example uses ADSI as well.
 

BigLinc

Member
May 15, 2003
33
0
0
Been awhile since last post, but I figured I'll throw this in anyway.

The DOS command 'net localgroup' (do the /? for switches) can do the job as well, it's pretty simplistic and works well in a batch file.