How to Set a Network Folder as a Trusted Location in Office 2019
Question details
Configure Microsoft Office 2019 to trust a network folder or NAS drive so that files do not constantly open in Protected View.

- Product
- Microsoft Office 2019
- Device & OS
- Windows
- Scenario
- Opening documents from a Network Attached Storage (NAS) or network share using an IP address.
- Observed behavior
- Office treats documents opened from the NAS via IP address as if they originated from the internet, forcing them to open in Protected View even after attempting to add the path to Trusted Locations.
Ensure you are logged in to Windows with an administrator account, as you will need elevated privileges to modify the system hosts file.
Map NAS IP to a Local Name and Update Trust Center
Microsoft Office often ignores IP addresses in the Trusted Locations list. Mapping your NAS IP to a local hostname forces Office to recognize the network share safely.
By default, Office 2019 interprets IP-based network addresses as internet locations, triggering Protected View. To bypass this, you must assign a local hostname to your NAS IP address in the Windows hosts file before adding it to the Office Trust Center.
Click the Start menu, type 'Notepad', right-click the Notepad app, and select 'Run as administrator'.
In Notepad, go to File > Open. Navigate to C:\Windows\System32\drivers\etc\. Change the file type dropdown from 'Text Documents (*.txt)' to 'All Files', select the 'hosts' file, and click Open.
At the bottom of the document, add a new line with your NAS IP address followed by a space, and then a local name (e.g., '192.168.1.50 mynas'). Save the file and close Notepad.
Open Word, Excel, or PowerPoint. Go to File > Options > Trust Center and click 'Trust Center Settings'. Select 'Trusted Locations' from the left menu and check the box that says 'Allow Trusted Locations on my network (not recommended)'.
Click 'Add new location'. In the Path field, type your new mapped name with backslashes (e.g., \\mynas\). Check 'Subfolders of this location are also trusted' if necessary, then click OK to save your changes.

Seamlessly Access Network Files with WPS Office
If strict Microsoft Office Protected View settings are interrupting your workflow, consider using WPS Office. It provides an intuitive interface to manage trusted network folders and seamlessly opens local and NAS files with high compatibility.
- 1. Open WPS Office: Launch WPS Writer, Spreadsheets, or Presentation on your computer.
- 2. Access Global Settings: Click on the 'Menu' icon in the top-left corner and select 'Options' from the drop-down list.
- 3. Navigate to Security Settings: In the Options dialog box, select 'Security' from the left-hand navigation pane.
- 4. Add Trusted Location: Locate the 'Trusted Locations' section and add your NAS network path to ensure your files open securely and smoothly.

Frequently Asked Questions
Why does Office 2019 open my network files in Protected View?
Office treats files opened from unknown network shares or IP addresses as originating from the internet or potentially unsafe zones. This automatically triggers Protected View to protect your computer from potential macro viruses or malware.
Can I add an IP address directly to Microsoft Office Trusted Locations?
Generally, no. Microsoft Office frequently ignores or rejects direct IP addresses in the Trusted Locations list for security reasons. Mapping the IP to a local hostname in your Windows hosts file is the standard workaround.
Do I need to configure the Trust Center in every Office program?
Yes, Trust Center settings are managed on a per-application basis. Adding a trusted location in Word will not automatically apply to Excel or PowerPoint; you must add the location in each application.




