![]() |
Wothing with Group Policy Objects through Command Line
I was wondering if anyone has ever worked with creating Group Policy Objects Through Command Line. I current am in a position where every 3 months we have to add about 150 new users to our Active Directory Database. We've had to enter them in all by hand using the AD Users and Computers Snap in which is a pain after about 3 users. I've found a way to prevent that by using DSADD, DSMOD, etc. But Now i'm stuck on creating GPO for each Organizational Unit. Each user has to have their My Documents Redirected to a location that is based on their programming experience. Every 50 users belong to a different OU for example New programmers, Novice Programmers, and Expert Programmers and each one have a different file location c:\new\username, c:\nov\username and c:\expert\username. They also have to have their own special logon script like the new programmers will have a welcome program that will help them learn about programming while the Expert Programmers have a calendar and journal of what they did that day and the days before to keep track of work. I've searched the internet for about an hour and all I can find is how to use an interface rather than a command line. Any help would be great. If you have any code or little notes that you don't know if they work then I'll try them out. I'll try just about anything. Thanks
Info: Windows Server 2003, and Windows Server 2000 (outdated I know) |
The thing is, I don't see why you need to use the command line either.
Quote:
Quote:
dsadd can easily create a user inside a certain OU. It doesn't matter if you created the OU and put a GPO on it with the snap-in or not. Shot in the dark here. Perhaps your problem is that users will go up in experience over time and need to be updated accordingly. The only complication I see is that dsmod doesn't have a way to move a user to a different OU. Two options: 1. Move the users to the appropriate OU with vbscript. 2. Change the users' groups, with the groups in the appropriate OU and the actual users elsewhere. |
Alright I'll go into more detail. When I have to do something more than 3 times with the basic setup just different variables I like to put it into a loop. When I go to create a GPO with the AD Users and Computers it's just to much work to be doing it over and over. So I'd like to where I can create the GPO with the command line. This is what I have:
:
dsadd ou "ou=New, dc=nwtraders, dc=test" -desc "This is the New Programmers Group" |
And that changes what now?
You still have 3 OUs and 3 distinctly different GPOs that are used for all of the 150 users now and even those in the future. Creating user accounts and making directories for them is repetitive, so you automate it. Organizing and configuring your directory is not. |
| All times are GMT -5. The time now is 1:07 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC