davidm27
asked on
Modify script to exclude OU from search
I have the following powershell script, i want to modify it so it exclude a certain OU when it runs
$Users = Get-QADUser -disabled
foreach ($User in $Users){
$User.description = (Get-Date).toshortdatestri ng()
move-QADObject $User -NewParentContainer 'MyDomain.company.com/NewY ork/Users'
}
any help would be great
thanks
$Users = Get-QADUser -disabled
foreach ($User in $Users){
$User.description = (Get-Date).toshortdatestri
move-QADObject $User -NewParentContainer 'MyDomain.company.com/NewY
}
any help would be great
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER