I need to deploy an Outlook rule that runs a script. So in other words I need deploy both an Outlook rule and the script it runs. I know I can get users to import the rwz rule file and maybe paste in the script, but I wondered if there was a more user friendly way.
I started writing a C# program to create the rule, but I cannot see a way to set the action to run a script. Is this possible?
Cheers, Jamie
The Rules Wizard (and .rwz files in particular) are a dead end as far as deployment is concerned.
According to the MSDN article on Specifying Rule Actions, the “start a script” rule cannot be created programmatically, so that’s not an option either.
You need to start looking into different options. As going the C# way seems an option, those include:
We can’t really advice you on the most appropriate route unless you share some more detail on what it is your rule and script are doing.