Link to home
Start Free TrialLog in
Avatar of QuazzieM
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
Avatar of Steven Harris
Steven Harris
Flag of United States of America image

Do you have a copy of the script available?
ASKER CERTIFIED SOLUTION
Avatar of QuazzieM
QuazzieM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of QuazzieM
QuazzieM

ASKER

That script allowed me to do exactly what I needed