PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.win.server.scripting > Re: Create user, asign home folder (with rights) and add to groups
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: Create user, asign home folder (with rights) and add to groups

Réponse
 
LinkBack Outils de la discussion
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
Vieux 10/10/2007, 22h45   #2
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" <banan2@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
--


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h54.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08484 seconds with 10 queries