|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Create user, asign home folder (with rights) and add to groups
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? banan2 wrote:
> Can I get a helping hand with creating a script that will create a user in I have an example VBScript program that creates AD users in bulk from the > AD, asign a home folder the user (\\server\user shared\%username%), and > add > the user to a few groups? 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. 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. "banan2" <ban***@discussions.microsoft.com> wrote in message No problem, it's just an example. Use as you wish.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. 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 > -- > > > |
|||||||||||||||||||||||