time scheduling
Hi,I am loking for a solution by which I can restrict some exchange 2007 email account to send email on specific hours or set a time table to restrict them in sending email.I will be very thankful if someone can help me in this regard.Regards.
April 15th, 2010 1:36pm
You can create a DL for those accounts, and a transport rule to bounce email sent by members of that DL. Then create scheduled tasks to enable/disable that rule.
Free Windows Admin Tool Kit Click here and download it now
April 15th, 2010 1:59pm
Or you can use cmdlet Set-CASmailbox with parameter -MAPIEnabled or -OWAEnabled and other parameter.Then create a Schedule Task to run the script to enable or disable mailbox access.About Set-CASmailbox:http://technet.microsoft.com/en-us/library/bb125264(EXCHG.80).aspxHow To: Schedule PowerShell Script for an Exchange Taskhttp://exchangeshare.wordpress.com/2008/12/08/how-to-schedule-powershell-script-for-an-exchange-task/ Frank Wang
April 16th, 2010 9:16am
thank you for your reply. but how can I set a scheduled task to enable or disable the rule?
Free Windows Admin Tool Kit Click here and download it now
April 17th, 2010 7:04am
The EMS cmdlets are:
enable-transportrule <rule name>
disable-transportrule <rule name>
You'll need to launch powershell with the same options used to launch the Exchange Management Shell so you have the Exchange cmdlets available.
I don't have those on hand (maybe somebody can provide them), but it would be the same commandline used to launce the EMS from the icon. I usually just open up the EMS, run
[environment]::commandline
and copy/past the result.
That, appended with
-command {enable-transportrule <rule name>}
and
-command {disable-transportrule <rule name>}
should do it.
April 17th, 2010 7:26am
thank you for your reply. but how can I set a scheduled task to enable or disable the rule?
Hi,
How to set a scheduled task, please have a look at the link which I gave you.
How To: Schedule PowerShell Script for an Exchange Task
http://exchangeshare.wordpress.com/2008/12/08/how-to-schedule-powershell-script-for-an-exchange-task/Frank Wang
Free Windows Admin Tool Kit Click here and download it now
April 19th, 2010 4:43am