Home All Groups Group Topic Archive Search About

Create user, asign home folder (with rights) and add to groups



Author
10 Oct 2007 7:33 AM
banan2
Hey.

Can I get a helping hand with creating a script that will create a user in
AD, asign a home folder the user (\\server\user shared\%username%), and add
the user to a few groups?

Author
10 Oct 2007 4:06 PM
Richard Mueller [MVP]
banan2 wrote:

> Can I get a helping hand with creating a script that will create a user in
> AD, asign a home folder the user (\\server\user shared\%username%), and
> add
> the user to a few groups?

I have an example VBScript program that creates AD users in bulk from the
information in an Excel spreadsheet linked here:

http://www.rlmueller.net/CreateUsers.htm

The program can create the home folder and add the user to any number of
groups. I'm actually in the process of revising this program, but I don't
want to post the new version until I finish testing. The new version reads
the Distinguished Name of the parent container (the OU or container where
the user account is created) from the spreadsheet (the DN of the parent
container is hard coded in the current version). The new version also
accepts the NT names (NetBIOS names) of the groups, while the current
version requires the Distinguished Names. I will probably post the new
version in a few days.

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
Author
10 Oct 2007 8:17 PM
banan2
Thanks for your response.

If you don't mind I will use parts of your script (for my own purpose only)
to be able to add a single user from an input.
Author
10 Oct 2007 9:45 PM
Richard Mueller [MVP]
"banan2" <ban***@discussions.microsoft.com> wrote in message
news:050EC730-8BE9-42D8-8638-98EA24A9DB55@microsoft.com...
> Thanks for your response.
>
> If you don't mind I will use parts of your script (for my own purpose
> only)
> to be able to add a single user from an input.

No problem, it's just an example. Use as you wish.

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
Author
18 Oct 2007 4:21 PM
gdeep
Pls, Can i have the script by which i can add bulk users into Ad.

Show quote
"Richard Mueller [MVP]" wrote:

> banan2 wrote:
>
> > Can I get a helping hand with creating a script that will create a user in
> > AD, asign a home folder the user (\\server\user shared\%username%), and
> > add
> > the user to a few groups?
>
> I have an example VBScript program that creates AD users in bulk from the
> information in an Excel spreadsheet linked here:
>
> http://www.rlmueller.net/CreateUsers.htm
>
> The program can create the home folder and add the user to any number of
> groups. I'm actually in the process of revising this program, but I don't
> want to post the new version until I finish testing. The new version reads
> the Distinguished Name of the parent container (the OU or container where
> the user account is created) from the spreadsheet (the DN of the parent
> container is hard coded in the current version). The new version also
> accepts the NT names (NetBIOS names) of the groups, while the current
> version requires the Distinguished Names. I will probably post the new
> version in a few days.
>
> --
> Richard Mueller
> Microsoft MVP Scripting and ADSI
> Hilltop Lab - http://www.rlmueller.net
> --
>
>
>

AddThis Social Bookmark Button