Afficher un message
Vieux 10/10/2007, 17h06   #1
Richard Mueller [MVP]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Create user, asign home folder (with rights) and add to groups

banan2 wrote:

> Can I get a ing 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
--


  Réponse avec citation
 
Page generated in 0,05651 seconds with 9 queries