Office Settings & Configuration

How to Set a Network Folder as a Trusted Location in Office 2019

Adam DavisAdam Davis Nov 3, 2026 872 views

Question details

Configure Microsoft Office 2019 to trust a network folder or NAS drive so that files do not constantly open in Protected View.

How to Set a Network Folder as a Trusted Location in Office 2019
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.
Before you start

Ensure you are logged in to Windows with an administrator account, as you will need elevated privileges to modify the system hosts file.

Solution 1Recommended

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.

1
Run Notepad as Administrator

Click the Start menu, type 'Notepad', right-click the Notepad app, and select 'Run as administrator'.

2
Open the Windows Hosts File

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.

3
Map the NAS IP Address

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.

4
Enable Network Trusted Locations in Office

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)'.

5
Add the Mapped Network Path

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.

Map NAS IP to a Local Name and Update Trust Center
Application Specific Settings: Trust Center settings are not global. You must repeat the Trust Center configuration steps in Word, Excel, and PowerPoint individually.
Manage Network Files Easily

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. 1. Open WPS Office: Launch WPS Writer, Spreadsheets, or Presentation on your computer.
  2. 2. Access Global Settings: Click on the 'Menu' icon in the top-left corner and select 'Options' from the drop-down list.
  3. 3. Navigate to Security Settings: In the Options dialog box, select 'Security' from the left-hand navigation pane.
  4. 4. Add Trusted Location: Locate the 'Trusted Locations' section and add your NAS network path to ensure your files open securely and smoothly.
Highly compatible with Microsoft Office formats including DOCX, XLSX, and PPTX.Easily open, edit, and save files directly to your NAS or network folders without constant security warnings.Lightweight alternative with an easy-to-use, familiar tabbed interface.Unified settings panel makes configuring trusted locations faster across all document types.
microsoft office alternative - wps office

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.