wearit,
Sorry for the late response as I have been very busy.
First question is you mention that this requires little modifiation to "Group Policy". This is not run via GP in anyway it is executed as a scheduled task on a server every night. Just want to make sure we are on the same page.
I guess I would rem this line back out after getting the data correct.
[quote]You will now receive an echo for each OU parsed.[/quote]
[code]WScript.Echo oOU.ADsPath[/code]
Another question what If I have more than one OU that I want this to not run? Can I just say I want this for an OU and all OU's below?
In otherwords would a basic IF work better than a IF NOT and put the Top level of the OU I want added instead of the OU I don't want?
For example:
[code]If (oOU.ADsPath = "OU CA") Then[/code]
The lines you have added - IF NOT and END IF should I have these in before the run? I'm taking it so as this will actually not run past the echo as it is now and allow me to cancel the script run. Is this correct?
Main Topics
Browse All Topics





by: weareitPosted on 2009-06-17 at 07:41:36ID: 24648738
The script actually gives you the ability to do this with little modification needed within Group Policy (thankfully).
I must warn you though that the changes we are making will affect all users and ou's below the root level you select to add as the If...Then statements conditional.
-saige-
Select allOpen in new window