Exchange 2010 PowerShell Question

Posted on 2013-09-22
Medium Priority
Last Modified: 2013-12-21

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?"

Question by:QuazzieM
  • 2
LVL 18

Expert Comment

by:Steven Harris
ID: 39513619
Do you have a copy of the script available?

Accepted Solution

QuazzieM earned 0 total points
ID: 39513629
Yes I do, its just the generic one from Pat Richard over on ehloworld

Author Closing Comment

ID: 39733418
That script allowed me to do exactly what I needed

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Welcome to 2018! Exciting things lie ahead in the world of tech. To start things off, we compiled great member articles on how to stay safe, ways to learn, and much more! Read on to start your new year right.
After a recent Outlook migration from a 2007 to 2010 environment, some issues with Distribution List owners were realized. In this article, I explain how that was rectified.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Screencast - Getting to Know the Pipeline

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question