Security Policy Errors

How to Disable Outlook Programmatic Access Warnings for RDS Users

Emma BrownEmma Brown Nov 4, 2026 868 views

Question details

Users need a way to permanently disable Outlook Programmatic Access warnings for all standard users in an RDS environment when utilizing VBA to send emails.

Disable Outlook Programmatic Access Warnings for All RDS Users
Product
Microsoft Outlook (Office 365 ProPlus)
Device & OS
Windows Server 2019
Scenario
Automating email generation via VBA scripts within Microsoft Outlook on a Remote Desktop Services (RDS) host.
Observed behavior
Standard RDS users receive Programmatic Access security warnings when VBA triggers email sending. Security settings applied via an administrator profile fail to propagate to standard users and frequently revert after system updates.
Before you start

Ensure you have domain administrator privileges to apply Group Policy Objects (GPOs) across the Remote Desktop Services environment, and verify that your server's antivirus software is active and fully updated.

Solution 1Recommended

Apply Programmatic Access Settings via Group Policy (GPO)

Using a Group Policy Object (GPO) ensures that security configurations apply globally to all standard users in the RDS environment and persist through system updates.

Applying settings locally on the administrator profile only affects the HKEY_CURRENT_USER registry hive for that specific admin. To enforce changes for all remote desktop users, you must use Microsoft Office Administrative Templates within the Group Policy Management Console.

1
Download Office Administrative Templates

Download and install the latest Administrative Template files (ADMX/ADML) for Microsoft 365 Apps from the official Microsoft Download Center.

2
Create a New GPO

Open the Group Policy Management Console (GPMC) on your domain controller. Right-click the Organizational Unit (OU) containing your RDS users and select 'Create a GPO in this domain, and Link it here'.

3
Navigate to Outlook Security Settings

Edit the new GPO and navigate to User Configuration > Policies > Administrative Templates > Microsoft Outlook > Security > Security Form Settings > Programmatic Security.

4
Configure the Prompt Settings

Enable the policy for 'Configure Outlook Object Model prompt when sending mail' and set the behavior to 'Never prompt' or automatically approve access. Run 'gpupdate /force' on the RDS host to apply the changes.

Persistent Settings: Applying these rules via GPO prevents Office 365 ProPlus updates from resetting the security configurations for standard user accounts.
Free Microsoft Office alternative

Experience Seamless Automation with WPS Office

Managing complex Microsoft Office security policies, GPOs, and programmatic access prompts in an RDS environment can be time-consuming. WPS Office provides a highly compatible, free, and lightweight alternative with robust VBA macro support. Its streamlined architecture reduces deployment headaches while ensuring your automated tasks and workflows execute seamlessly without intrusive security prompts.

  1. 1. Download WPS Office: Visit the official WPS website and download the enterprise-ready installer.
  2. 2. Deploy on RDS: Install the lightweight client across your Windows Server environment.
  3. 3. Run Macros Seamlessly: Open your macro-enabled documents and execute your VBA scripts securely without disruptive prompts.
Highly compatible with Microsoft Office file formats (.docx, .xlsx, .pptx)Robust VBA and Macro support for complex enterprise automationLightweight architecture optimized for Remote Desktop Services (RDS)Completely free to download with a familiar, easy-to-use interface
QA img-9

Frequently Asked Questions

Why does Outlook display Programmatic Access warnings when running VBA?

Outlook displays these warnings as a built-in security measure to prevent unauthorized scripts, macros, or malicious software from secretly accessing your address book or sending emails on your behalf.

Why do security changes made in the Administrator profile revert for standard RDS users?

In an RDS environment, user-specific configurations are stored in the current user's registry hive (HKCU). Changes made by an administrator only apply to the admin's profile. To apply settings to all standard users, you must use a Group Policy Object (GPO).

Does updating my antivirus software disable Outlook security prompts?

Yes, Outlook automatically checks the Windows Security Center for the presence of an active, updated antivirus. If one is found, Outlook trusts the system environment and typically suppresses programmatic access warnings automatically.

How do I know if my antivirus is properly registered with Windows Security Center?

You can verify this by opening the 'Windows Security' application on your server, navigating to 'Virus & threat protection', and ensuring that your antivirus provider is listed and reports a healthy, active status.