Adding users to sub OU using Script

A

Adnan

I am using Windows Server 2003 as Domain Controller and i want to add
users using vb script.
my LDAP path is

"LDAP://OU=Student,DC=in,DC=dt,DC=com")

this create the users only in the Student OU but i want to create
users in the Session which is Sub OU of the Student. Cand any body
help me.


Thanks in Advance
 
M

Meinolf Weber

Hello Adnan,

Just modify your LDAP to:
Set oContainer=GetObject("LDAP://OU=yournewou,OU=Student,DC=in,DC=dt,DC=com")


Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
 
A

Adnan

Thanks Meinolf Weber nospam.

I have Done it.




Hello Adnan,

Just modify your LDAP to:
Set oContainer=GetObject("LDAP://OU=yournewou,OU=Student,DC=in,DC=dt,DC=com")

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!!http://www.blakjak.demon.co.uk/mul_crss.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top