QuazzieM
asked on
Exchange 2010 PowerShell Question
Hey,
I have a PowerShell script that basically runs again AD and emails a template to staff who's password is set to expire with 7 days.
The script runs fine, however the powers only want it to run against our Area Managers as they're the only ones that aren't in the office very often and the only ones that forget to update their passwords.
Therefore, my question is...
"Is there a way to limit the script to run against a single OU instead of the whole AD forest?"
Thanks
I have a PowerShell script that basically runs again AD and emails a template to staff who's password is set to expire with 7 days.
The script runs fine, however the powers only want it to run against our Area Managers as they're the only ones that aren't in the office very often and the only ones that forget to update their passwords.
Therefore, my question is...
"Is there a way to limit the script to run against a single OU instead of the whole AD forest?"
Thanks
Do you have a copy of the script available?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That script allowed me to do exactly what I needed