Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - power shell for add OU, sub'ous, and users to domain from file

Reply
 
Old 05-14-2009   #1 (permalink)
PETRUS


 
 

power shell for add OU, sub'ous, and users to domain from file

On new AD, every night, one external database send to AD server one .csv file
with this structure:
username@xxxxxx, name, surname1, surname2, OU-firstlevel,
OU-secondlevel, OU-thirdlevel,change_password(yes(1)/no(0)), password
Example:
user1@xxxxxx, mark, smicht, lock, EE.UU, Carolina, HR, 0, oldpassword
user2@xxxxxx, peter, alvez, gonzalez, Spain, Madrid, Sales, 1,
newpassword
...........
...........
up to 5000 users.

Does anyone know of a website where there is a script to do this (or similar)?
Must apply for the initial load of users and OU's and the daily maintenance
of the AD with this file. (Every day new file, with few modifications)
EVEN I like rewrite with 2 moths more expiration date account if one user is
in the file.
This way, if the file remains the user (active) does not lapse, and if not
will have 2 months active (from the last time it appeared), and then
activates the account expires.

It's essential the OU's, and sub OU's creation, and include every user in
their respective OU.


Thanks.

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Reg: Pushing the patch file to SCCM agents using power shell scrip PowerShell
Power Shell? PowerShell
reditributing power shell PowerShell
Executing Power Shell Scripts from Windows Shell PowerShell
power shell in x64 PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46