Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to restore missing Run a script option in Outlook rule?

You may have noticed the run a script option disappears from the Rules wizard after an Office update. That will prevent users from creating Outlook rule with VBA script. This article will introduce a way to restore the missing run a script option in the Outlook rules wizard easily.

Restore missing Run a script option in Outlook 2016

Kutools for Outlook: 100+ New Advanced Tools for Outlook.
Office Tab: Enable Tabbed Editing and Browsing in Office, Just Like Chrome, Firefox, IE 8/9/10.
Classic Menu: Bring Old Menus and Toolbars Back to Office 2007, 2010, 2013, 2016 and 2019.

arrow blue right bubbleRestore missing Run a script option in Outlook 2016

To restore the missing run a script option in the Outlook rules wizard, please do as follows:

1. Press Win + R keys together to open the Run dialog box, in the dialog box type regedit in the Open box, and click the OK button. See screenshot:

2. In the popping out User Account Control dialog box, please click the Yes button. See screenshot:

3. In the Registry Editor window, please open the Security key with below path:
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Security

4. Right click the Security key, and select New > DWORD (32-BIT Value) from the right-clicking menu, and then name the new DWORD as EnableUnsafeClientMailRules. See screenshot:

5. Double click the EnableUnsafeClientMailRules DWORD to open the Edit QWORD Value dialog box. See screenshot:

6. In the Edit QWORD (64-BIT) Value dialog box, type 1 in the Value data box, and click the OK button. See screenshot above.

7. Restart your Microsoft Outlook.

And now you will find out the run a script option in the Step 1: Select action (s) of Rules Wizard.


arrow blue right bubbleRelated Articles

 

Recommended Productivity Tools

shot kutools outlook kutools tab 1180x121
shot kutools outlook kutools plus tab 1180x121

Kutools for Outlook - More than 100 Advanced Functions for Outlook, Improve 70% Efficiency For you

  • Complicated and repeated operations can be done a one-time processing in seconds.
  • Forward multiple emails individually with one-click, and auto forward by rules.
  • Auto CC/BCC every sending email and easy for customizing rules, and auto reply without requiring exchange server.
  • Powerful junk emails filter, remove duplicate emails, reply with attachment, bunch of one-click operations, and so on...
  • 60-day unlimited free trial. 60-day money back guarantee. 2 years free upgrade and support. Buy once, use forever.
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    FerretWilliams · 1 months ago
    I also didn't have a security folder. To get around the issue, I set a rule to forward all emails fitting a specific rule to IFTTT so I can use their automation instead. Won't work for everybody, and attachments get a long number added to them if saving to Dropbox.
    • To post as a guest, your comment is unpublished.
      dan · 17 days ago
      what applet did you use on IFTTT, or did you make your own?
      • To post as a guest, your comment is unpublished.
        FerretWilliams · 16 days ago
        I set an email trigger, and set the action to be to save to Dropbox. However, I've since switched to Microsoft Flow for saving Gmail directly to Dropbox. My specific goal was to save Gmail attachments to Dropbox, and Flow worked best for that after IFTTT dropped support for reading emails from Gmail.
  • To post as a guest, your comment is unpublished.
    Sagar · 2 months ago
    I Don't Have a security folder after HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook
    • To post as a guest, your comment is unpublished.
      IT Engineer · 2 months ago
      It's because Microsoft has yet again changed something concerning this feature. Most likely, this registry key path has completely changed, or has been outright omitted. I have a Premier Support ticket open with MS currently to have them provide us the CORRECT registry setting for Office2016/2019 current monthly channel to bring the Run a Script in Rules Actions back. It is completely unacceptable for MS to continue to alter/omit features like this without clear & priority notification to clients. I understand the security risks behind using such a feature, but in certain scenarios, this still is used.
      • To post as a guest, your comment is unpublished.
        Azza · 28 days ago
        By playing around I found the correct key:
        Computer\HKEY_USERS\{whichevertheuserkeyis}\Software\Microsoft\Office\16.0\Outlook\Security

        So do not use HKEY_Current_User, instead use HKEY_USERS
  • To post as a guest, your comment is unpublished.
    Jason · 4 months ago
    This doesn't seem to work for Outlook 2013. Is there a method that will work for this version? Also, your instructions reference DWORD and the images imply QWORD.
    • To post as a guest, your comment is unpublished.
      Lukie · 3 months ago
      For 2013 I used HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Security and DWORD EnableUnsafeClientMailRules with value 1.
      Each version of office has its own folder in "HKEY_CURRENT_USER\Software\Microsoft\Office\"

      You also need to allow the macro to run in outlook 2013:

      File -> Options -> Trust Centre -> Trust centre settings
      -> Macro settings -> "Notifications for all macros"

      This will ask you to allow the macro the first time the rule runs, but be careful not to allow any other unknown macros during day to day use. You could also use a digitally signed macro, and only allow digitally signed ones to run.

      Then create your script, create a rule that runs it, and you should be set.
  • To post as a guest, your comment is unpublished.
    Espen · 8 months ago
    DWORD or QWORD? A bit confusing to understand which to use... Had to create DWORD to make it work. Thanks
  • To post as a guest, your comment is unpublished.
    Rafal · 11 months ago
    Do You have instructions how to enable this option also for outlook 2010?