![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||