RichCowell Posted February 23, 2016 Posted February 23, 2016 Hi All, I need to look into options for stopping / bouncing / holding external emails from being received during the hours of 1900-0700... For all members of a certain security/distribution group... Disabling those accounts completely is not ruled out as a solution, but I'd rather continue to let them access their emails and send/receive internally. Does anyone know if this is possible, and if so, how? I'm guessing it'd be a powershell script that could be scheduled to run disable & enable etc. but not got a clue about that! Thanks, Rick
Geoff Posted February 23, 2016 Posted February 23, 2016 Can't you do this in the Transport rules? https://technet.microsoft.com/en-us/library/jj919238%28v=exchg.150%29.aspx
RichCowell Posted February 23, 2016 Author Posted February 23, 2016 Can't you do this in the Transport rules? https://technet.microsoft.com/en-us/library/jj919238%28v=exchg.150%29.aspx Yes, I'd looked at rules as I have a few set up for various things already, and they can be scheduled with a start and end date, but they'd have to be scheduled manually each day/weekend... so not really a practical solution... Unless I've missed something... I've had a good luck though...
Geoff Posted February 23, 2016 Posted February 23, 2016 Script the Transport rule changes with Powershell. Run the Powershell script on a schedule?
RichCowell Posted February 23, 2016 Author Posted February 23, 2016 I thought that's what I may have to do... I don't know Powershell at all though - do you know where I'd find a script to do that?
Geoff Posted February 23, 2016 Posted February 23, 2016 Easiest thing to do is to set the transport rule up manually and use 'Enable-TransportRule' and 'Disable-TransportRule' in two separate scripts. They are basically one liners then. https://technet.microsoft.com/en-us/library/aa996744%28v=exchg.160%29.aspx https://technet.microsoft.com/en-us/library/bb125180%28v=exchg.160%29.aspx 1
RichCowell Posted February 23, 2016 Author Posted February 23, 2016 Easiest thing to do is to set the transport rule up manually and use 'Enable-TransportRule' and 'Disable-TransportRule' in two separate scripts. They are basically one liners then. https://technet.microsoft.com/en-us/library/aa996744%28v=exchg.160%29.aspx https://technet.microsoft.com/en-us/library/bb125180%28v=exchg.160%29.aspx Sounds perfect, thank you!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now