Click to See Complete Forum and Search --> : i wants to create multiple users through Jscript or vBscript on WINDOWS 2000 SERVER.
abdulhameed
May 19th, 2005, 02:06 AM
hay every one;
i wants to create multiple users on WINDOWS 2000 DOMAIN CONTROLER using a single Jscript or vBscript programe that can be run on WSH. how i will create it?
Please help me if you can.
f1shrman
May 21st, 2005, 07:47 AM
Here is a pretty basic sample of creating a local account
Dim oContainer
Dim oUser
'The server where you are going to create these users
Set oContainer=GetObject("WinNT://" & <Put the Server Name Here>)
'Create user
Set oUser = oContainer.Create("User",<Put the User Account Here>)
'Assign properties values to user
oUser.FullName = <Put User Full Name Here>
oUser.Description = <Put User Description Here>
oUser.SetInfo
'Set the password
oUser.SetPassword( <Put User Password Here> )
'Clean up
Set oUser = Nothing
Set oContainer = Nothing
Check out this link, Win32 Scripting (http://cwashington.netreach.net/depo/default.asp?topic=repository&move=last&ScriptType=vbscript&SubType=DomainAdministration), it has good info on Win32 scripting and ADSI user stuff.
HTH
abdulhameed
May 30th, 2005, 02:24 AM
thanks for your this kind of kindness. i will check it and replies to you if i needs some help from you.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.