• Outlook User
  • Exchange Admin
  • Office 365
  • Outlook Developer
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
    • Common Problems
    • Outlook BCM
    • Utilities & Addins

Run-a-Script Rules Missing in Outlook

Slipstick Systems

› Outlook › Rules, Filters & Views › Run-a-Script Rules Missing in Outlook

Last reviewed on May 3, 2022     65 Comments

Applies to: Outlook 365 (Win), Outlook 2021 (Win), Outlook 2019 (Win), Outlook 2016 (Win), Outlook 2013, Outlook 2010

This applies to Outlook 2010 and newer, including Outlook 365, 2021, 2019, 2016.

Office users who use run-a-script rules are discovering their scripts are currently disabled (as is Start Application), thanks to a security update. When the update is installed, any existing run-a-script and run application rules will be disabled.

missing run a script

To fix, you need to set the EnableUnsafeClientMailRules value in the registry then restart Outlook.

Outlook 2016 and newer
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Security
DWORD: EnableUnsafeClientMailRules
Value: 1

Outlook 2013
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Security
DWORD: EnableUnsafeClientMailRules
Value: 1

Outlook 2010
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Security
DWORD: EnableUnsafeClientMailRules
Value: 1

If you don't want to edit the registry yourself, you can use this ready-to-use .reg file.
Outlook 2016/2019/2021/365 Outlook 2013
Outlook 2010

One option is to convert the run-a-script to an ItemAdd macro. Depending on the conditions in your rule, converting it to an ItemAdd macro may be as simple as adding the application startup macro, renaming the script, and adding an If statement. For information on using ItemAdd macros, see How to use an ItemAdd Macro.

More Information

The option to "Run a Script" has disappeared from the Outlook rules

Run-a-Script Rules Missing in Outlook was last modified: May 3rd, 2022 by Diane Poremsky
  • Twitter
  • Facebook
  • LinkedIn
  • Reddit
  • Print

Related Posts:

  • Disable the Unsafe Hyperlink Warning when Opening Attachments
  • Folder Home Pages aren't available
  • Outlook Folder Homepages are missing
  • Start Outlook using a different VBA Project file

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Subscribe
Notify of
65 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

kRI (@guest_219932)
December 18, 2022 10:14 pm
#219932

I AM UNABLE TO SELECT SCRIPTS AFTER SELECTING RUN A SCRIPT

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  kRI
December 18, 2022 11:19 pm
#219933

The box with the scripts is empty?

Did you format the script name properly? You need something in the () - example: sub scriptname (item as mailitem)

1
0
Reply
kRI (@guest_219944)
Reply to  Diane Poremsky
December 26, 2022 10:49 am
#219944

Thank you! it worked

0
0
Reply
Rafeek Masani (@guest_219826)
October 27, 2022 7:52 am
#219826

I need to forward the emails received in a certain mail box to one of the sendor mentioned in the To addresses field, what rule or script should I reply

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Rafeek Masani
October 28, 2022 8:31 am
#219830

Will there be more than one address in the To field?

This page has samples, but will need to be tweaked if forwards go to different people each time.
https://www.slipstick.com/outlook/rules/run-script-rule-change-subject-message/

0
0
Reply
Mark (@guest_219555)
July 19, 2022 6:35 pm
#219555

I had my pc rebuilt and have allowed unsafe rules. The rule will move a file to a folder but doesn't run the script, no error message. Macros have been allowed etc.

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Mark
July 20, 2022 12:50 am
#219556

So you have the rule moving it then running a script? You should only use conditions in the rule - actions should be in the script.

0
0
Reply
Mark (@guest_219557)
Reply to  Diane Poremsky
July 20, 2022 12:54 am
#219557

Yes, I found the reason I had copied all the rules from a text file which still had a title in it above the scripts that prevented it working. All good now thanks.

0
0
Reply
Joe (@guest_219448)
June 20, 2022 7:48 am
#219448

Just sharing this. You can do very cool things with this!

Execute PowerShell Scripts from Your Smartphone | Dmitry's Blog: Cloud, PowerShell and beyond (wordpress.com)

0
0
Reply
Nikhil (@guest_218985)
December 17, 2021 3:54 am
#218985

My organisation doesn't allow to set this in registry.
Is there any other workaround for this?
I want to save an attachment from a mail which I receive daily to a folder on a network drive folder.
Please help!

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Nikhil
June 20, 2022 2:03 pm
#219450

No, there is no other way if you can't run scripts. Sorry.

0
0
Reply
Simon (@guest_218683)
August 30, 2021 10:00 am
#218683

any idea why its called EnableUnsafeClientMailRules
What exactly is unsafe about it

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Simon
August 30, 2021 12:45 pm
#218685

It is disabled because it can do things outside of outlook (start application is disabled too). While it is hard to install an outlook macro, there was an exploit that used run application.
Detect and remediate the Outlook rules and custom forms injections attacks. - Office 365 | Microsoft Docs

0
0
Reply
Simon (@guest_218686)
Reply to  Diane Poremsky
August 30, 2021 12:47 pm
#218686

Thank you for your quick response

0
0
Reply
Milooz (@guest_218449)
June 25, 2021 2:10 am
#218449

How we can do the same thing with Office 365 ?

Thanks in advance

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Milooz
June 25, 2021 7:52 am
#218450

Office 365 desktop software is office 16 - just use the 2-16 keys.

1
0
Reply
Tevfik (@guest_218090)
May 4, 2021 8:34 am
#218090

Thank you. This is great!

Last edited 2 years ago by Tevfik
0
0
Reply

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 28 Issue 11

Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Subscribe to Exchange Messaging Outlook






Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • WeekMonthAll
  • Adjusting Outlook's Zoom Setting in Email
  • How to Remove the Primary Account from Outlook
  • Cannot add Recipients in To, CC, BCC fields on MacOS
  • Move an Outlook Personal Folders .pst File
  • Save Sent Items in Shared Mailbox Sent Items folder
  • Create rules that apply to an entire domain
  • Outlook's Left Navigation Bar
  • Use PowerShell to get a list of Distribution Group members
  • Remove a password from an Outlook *.pst File
  • View Shared Calendar Category Colors
  • Cannot add Recipients in To, CC, BCC fields on MacOS
  • Change Appointment Reminder Sounds
  • Messages appear duplicated in message list
  • Reset the New Outlook Profile
  • Delete Old Calendar Events using VBA
  • Use PowerShell or VBA to get Outlook folder creation date
  • Outlook's Left Navigation Bar
  • Contact's Display Bug
  • Use PowerShell to get a list of Distribution Group members
  • Edit Outlook’s Attach File list
Ajax spinner

Newest Code Samples

Delete Old Calendar Events using VBA

Use PowerShell or VBA to get Outlook folder creation date

Rename Outlook Attachments

Format Images in Outlook Email

Set Outlook Online or Offline using VBScript or PowerShell

List snoozed reminders and snooze-times

Search your Contacts using PowerShell

Filter mail when you are not the only recipient

Add Contact Information to a Task

Process Mail that was Auto Forwarded by a Rule

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in Outlook for Windows.

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




Windows 10 Issues

  • iCloud, Outlook 2016, and Windows 10
  • Outlook Links Won’t Open In Windows 10
  • Outlook can’t send mail in Windows 10: error Ox800CCC13
  • Missing Outlook data files after upgrading Windows?

Outlook Top Issues

  • The Windows Store Outlook App
  • The Signature or Stationery and Fonts button doesn’t work
  • Outlook’s New Account Setup Wizard
  • Outlook 2016: No BCM
  • Exchange Account Set-up Missing in Outlook 2016

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Contact Tools

Data Entry and Updating

Duplicate Checkers

Phone Number Updates

Contact Management Tools

Diane Poremsky [Outlook MVP]

Make a donation

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Outlook Suggestion Box (UserVoice)

Slipstick Support Services

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Advertise | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2023 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.

wpDiscuz

Sign up for Exchange Messaging Outlook

Our weekly Outlook & Exchange newsletter (bi-weekly during the summer)






Please note: If you subscribed to Exchange Messaging Outlook before August 2019, please re-subscribe.

Never see this message again.

You are going to send email to

Move Comment