Avatar of TheBLain
TheBLain
Flag for United States of America asked on

Outlook 2013 - Script to Create Rule to Delay All Sent Messages by X Minutes

I'm able to manually create such a rule via the wizard in Outlook, but I need to deploy this rule to 50+ workstations.  Since exporting and importing rules via script seems like a dead end, what about just re-creating the rule via script?  That should be easy enough to deploy via Group Policy.  Any experts want to way in on this?
OutlookVB ScriptVBA

Avatar of undefined
Last Comment
TheBLain

8/22/2022 - Mon
Will Szymkowski

What you could do here is create an Outlook rule using Powershell (see link below)
http://blogs.technet.com/b/heyscriptingguy/archive/2009/12/16/hey-scripting-guy-december-16-2009.aspx

Once you have the script configured you can then deploy this via GPO logon script.

Thats how you can deploy this to multiple users.

Will.
Dirk Mare

I would do this at Server level are you using Exchange? I know MailMarshal can also do this.

DirkMare
TheBLain

ASKER
Will - I didn't know PowerShell was an option for this!  That's awesome as it's standardized across the network and easy to deploy.  May take a bit to figure out exactly how to script it, but the example you posted looks quite similar to the VB code I already have.

Dirk - We are indeed running Exchange, but I was under the impression that delaying messages was not possible at that level (at least not with standard transport rules).  Is there something I'm missing?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
TheBLain

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
TheBLain

ASKER
Sometimes pre-packaged solutions are simply unavailable, and you need to craft something from scratch.  Such was the case here.