How to Disable Outlook Programmatic Access Warnings for RDS Users
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.

- 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.
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.
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.
Download and install the latest Administrative Template files (ADMX/ADML) for Microsoft 365 Apps from the official Microsoft Download Center.
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'.
Edit the new GPO and navigate to User Configuration > Policies > Administrative Templates > Microsoft Outlook > Security > Security Form Settings > Programmatic Security.
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.
Verify Antivirus Registration with Windows Security Center
Outlook automatically suppresses programmatic access warnings if it detects a valid and updated antivirus solution recognized by the operating system.
Consult Microsoft Q&A for Specialized RDS Scripting Support
Since combining Office 365 ProPlus, VBA automation, and RDS architecture introduces complex security dependencies, escalating to Microsoft's specialized forums can yield targeted hotfixes.
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. Download WPS Office: Visit the official WPS website and download the enterprise-ready installer.
- 2. Deploy on RDS: Install the lightweight client across your Windows Server environment.
- 3. Run Macros Seamlessly: Open your macro-enabled documents and execute your VBA scripts securely without disruptive prompts.

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.




