When you open a Word document from a network drive, you may see a yellow security warning bar stating that the file is protected. This warning appears because Word treats files from network shares as potentially unsafe, blocking active content like macros, ActiveX controls, and data connections. The root cause is a security setting called Trust Documents in Network Shares, which is disabled by default to protect your system from malicious files. This article explains exactly what this toggle does, how to enable or disable it safely, and what risks you must consider before changing the setting.
Key Takeaways: Trust Documents in Network Shares Toggle
- File > Options > Trust Center > Trust Center Settings > Trusted Documents > Trust documents in network shares: Controls whether Word automatically trusts all files opened from mapped drives or UNC paths.
- Disabling the toggle (default): Forces Word to show a security warning for every network file, blocking macros and active content until you manually trust the file.
- Enabling the toggle: Removes the security warning for all files from network shares, allowing macros and active content to run without prompting, which increases risk if a file is compromised.
How the Trust Documents in Network Shares Setting Works
Word’s Trust Center uses a feature called Trusted Documents to remember which files you have manually marked as safe. When you open a file and click Enable Editing or Enable Content, Word adds that file to a trusted documents list stored in the Windows registry. On subsequent opens, the file bypasses the security warning.
The Trust Documents in Network Shares toggle changes this behavior for files located on network drives. A network share is any drive mapped to a remote server (like Z:\) or a UNC path (like \\server\share). By default, this toggle is unchecked, meaning Word does not automatically trust files from network shares. Instead, it treats each file as untrusted until you manually approve it.
What Happens When the Toggle Is Disabled
With the toggle off, every time you open a Word document from a network share, you see a yellow bar with the message Protected View or Security Warning. Active content such as macros, ActiveX controls, and data connections are blocked. To use the file normally, you must click Enable Editing or Enable Content. This manual step prevents malicious macros from running automatically if a network share is compromised.
What Happens When the Toggle Is Enabled
When you check Trust documents in network shares, Word treats all files from network shares as trusted by default. The security warning does not appear. Macros, ActiveX controls, and other active content run without prompting. This is convenient if you regularly work with trusted files stored on your company’s internal file server. However, if an attacker gains write access to that server and replaces a document with a malicious one, Word will not warn you.
Steps to Configure the Trust Documents in Network Shares Toggle
Follow these steps to enable or disable the toggle. You must have administrator access to change Trust Center settings in some corporate environments.
- Open Word and go to File > Options
Launch Word. Click the File tab in the upper-left corner, then click Options at the bottom of the left pane. The Word Options dialog opens. - Open Trust Center Settings
In the Word Options dialog, click Trust Center in the left sidebar. Then click the Trust Center Settings… button. A new dialog appears. - Navigate to Trusted Documents
In the Trust Center dialog, click Trusted Documents in the left sidebar. You see the option Trust documents in network shares as a checkbox. - Check or uncheck the toggle
To enable automatic trust for network files, check the box. To disable it and force security warnings, uncheck the box. The default is unchecked. - Optionally clear trusted documents
Below the checkbox, you see a button labeled Clear all trusted documents. Click this to remove all previously trusted documents from the registry. This does not affect the toggle setting itself. - Click OK to save changes
Click OK in the Trust Center dialog, then click OK in the Word Options dialog. Restart Word for the change to take effect on all new files.
Testing the Setting
After changing the toggle, open a document from a network share that contains a macro. If the toggle is enabled, the macro runs without a security warning. If disabled, the yellow security warning bar appears, and you must click Enable Content to run the macro.
Risks, Limitations, and Best Practices for Network Share Trust
Enabling this toggle introduces a security trade-off. Below are the most common risks and how to mitigate them.
Compromised Network Share Can Infect All Users
If an attacker gains write access to the network share, they can replace a trusted document with one containing malicious macros. Because the toggle is enabled, Word runs those macros for every user who opens the file. To reduce this risk, ensure the network share uses strict access controls and regularly audit file permissions.
Toggle Does Not Apply to SharePoint or OneDrive
The Trust Documents in Network Shares setting applies only to files accessed via a mapped drive or UNC path. Files stored on SharePoint Online or OneDrive for Business are not affected. Those services use a separate trust mechanism based on the file’s URL and the user’s Microsoft 365 sign-in status.
Clearing Trusted Documents Does Not Disable the Toggle
Clicking Clear all trusted documents removes the list of individually trusted files but does not change the toggle state. If the toggle remains enabled, Word continues to trust all new files from network shares without prompting. To fully revert to default security, uncheck the toggle and then clear the trusted documents list.
Group Policy Overrides Local Setting
In organizations managed by Group Policy, an administrator may enforce a specific state for this toggle. If the checkbox is grayed out in the Trust Center, the setting is controlled by a policy and cannot be changed locally. Contact your IT department to request a change.
Trust Documents in Network Shares vs Manual Trust: Behavior Comparison
| Item | Toggle Enabled | Toggle Disabled |
|---|---|---|
| Security warning on open | None | Yellow bar appears |
| Macro execution | Runs automatically | Blocked until user clicks Enable Content |
| ActiveX controls | Enabled without prompt | Disabled until user approves |
| Data connections | Allowed automatically | Blocked until user trusts the file |
| Risk of infection from compromised share | High | Low |
| User productivity | Higher — no prompts | Lower — must approve each file |
Understanding these differences helps you choose the right setting for your environment. For most users, the default disabled state offers the best balance of security and usability. If you enable the toggle, combine it with strict network share permissions and regular security audits.
The Trust Documents in Network Shares toggle is a single checkbox with significant security implications. You can now configure it to match your workflow and risk tolerance. After adjusting the setting, test with a document containing a macro to confirm the behavior you expect. For advanced protection, consider using Windows Defender Application Control or AppLocker to restrict which macros can run, even when the toggle is enabled.