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

Office Tab - Enable Tabbed Editing and Browsing in Office, and Make Work Much Easier...
Kutools for Outlook - Brings 100 Powerful Advanced Features to Microsoft Outlook
  • Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by rules; Auto Reply without exchange server, and more automatic features...
  • BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
  • Reply (All) With All Attachments in the mail conversation; Reply Many Emails at once; Auto Add Greeting when reply; Auto Add Date&Time into subject...
  • Attachment Tools: Auto Detach, Compress All, Rename All, Auto Save All... Quick Report, Count Selected Mails, Remove Duplicate Mails and Contacts...
  • More than 100 advanced features will solve most of your problems in Outlook 2010-2019 and 365. Full features 60-day free trial.

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


Kutools for Outlook - Brings 100 Advanced Features to Outlook, and Make Work Much Easier!

  • Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by custom; Auto Reply without exchange server, and more automatic features...
  • BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
  • Reply (All) With All Attachments in the mail conversation; Reply Many Emails in seconds; Auto Add Greeting when reply; Add Date into subject...
  • Attachment Tools: Manage All Attachments in All Mails, Auto Detach, Compress All, Rename All, Save All... Quick Report, Count Selected Mails...
  • Powerful Junk Emails by custom; Remove Duplicate Mails and Contacts... Enable you to do smarter, faster and better in Outlook.
shot kutools outlook kutools tab 1180x121
shot kutools outlook kutools plus tab 1180x121
 
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.
    Max · 1 months ago
    Great! Thanks
  • To post as a guest, your comment is unpublished.
    Ethan H · 5 months ago
    This worked for me in Outlook for Office 365. Once point to clarify, the instructions flip-flop between DWORD and QWORD, which are mutually exclusive. I used DWORD and it worked.
  • To post as a guest, your comment is unpublished.
    FerretWilliams · 7 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 · 6 months ago
      what applet did you use on IFTTT, or did you make your own?
      • To post as a guest, your comment is unpublished.
        FerretWilliams · 6 months 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 · 8 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 · 8 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 · 6 months 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 · 10 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 · 9 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 · 1 years 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 · 1 years ago
    Do You have instructions how to enable this option also for outlook 2010?
  • To post as a guest, your comment is unpublished.
    abhi · 1 years ago
    Thank You! It worked for me and as mentioned in one of the comments below, Step 6 was DWORD dialogue box for me.
  • To post as a guest, your comment is unpublished.
    Bblz · 1 years ago
    This is perfect! Solved my problem!! Had a few software updates the other day and my scripts in my Outlook rules stopped working. Didn't even have the option to create a new rule to run the script. All fixed now! Step 6 was the DWORD dialogue box for me.
  • To post as a guest, your comment is unpublished.
    Gideon · 1 years ago
    It seems to block my incoming mail when the rule holds.
    • To post as a guest, your comment is unpublished.
      kelly001 · 1 years ago
      Hi Gideon,
      This article just guilds you to restore the “Run a script” option when creating rules in Outlook, it won’t create any rules at all.
      What about checking outlook rules you created and disabling them in the Rules and Alerts dialog?
  • To post as a guest, your comment is unpublished.
    Mickael · 1 years ago
    Seems to be working even though in step 6 it's the DWORD dialog box that opens up on my end. Thank you very much!