PowerShell-Scripts icon indicating copy to clipboard operation
PowerShell-Scripts copied to clipboard

Adding OU targeting

Open jczinger opened this issue 7 years ago • 0 comments

I added an optional parameter to the Send-AllNotices called AD_TargetOU. This string accepts a CN and will limit the user object search down to that OU and all subsequent OU's in the subtree. It uses the -SearchBase parameter of Get-ADUser. This, combined with the exclusion list, should broaden the targeting ability of the script enough for most use cases.

jczinger avatar Mar 21 '18 20:03 jczinger