General discussion

Locked

Add users

By talex ·
Hi !
How I can Add users from text file to AD,
including OU.

Best regards,
Alex
talex@rafael.co.il

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Add users

by LastSurvivor In reply to Add users

You need to obtain a copy of windows scripting host from Microsoft at www.microsoft.com you are looking for the most reason versions of ADSI and Windows script host. 1. Create a new Dir to store the files. 2. Dowload and install ADSI and WSH to the new dir. 3. Start|Run "Cscript scriptfile.vbs" 4. Scriptfile.vbs is the name of a file that contains the following enteries.
On Error Resume Next
Set Root = GetObject("LDAP://" $ Root.Get ("DefaultNamingContext"))
Set User = DomObj.Create("user:, "CN=fullname")
User.samAccountname ="Name"
User.SetInfo


Name is the name of the user account, and Fullname is the user's Full name

Collapse -

Add users

by talex In reply to Add users

The question was auto-closed by TechRepublic

Collapse -

Add users

by SyscoKid In reply to Add users

You seem to have forgotten about this question.

Collapse -

Add users

by talex In reply to Add users

The question was auto-closed by TechRepublic

Collapse -

Add users

by talex In reply to Add users

This question was auto closed due to inactivity

Back to Windows Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums