When attempting to open a hyperlink from an email in Outlook that leads to a network file, you might encounter the error message, "Something unexpected went wrong with this URL." This guide provides a simple solution by adding the network location to Internet Explorer's trusted sites. Additionally, you'll learn how to adjust the security settings to not require HTTPS for these sites.
Warning: Modifying internet options security settings can expose your organization to significant cybersecurity risks. These changes might lower the defenses against malware, phishing attacks, and unauthorized access to sensitive data. Ensure that any modifications are thoroughly evaluated and understood by your IT security team.
file://servername
and click Add.file://ip.address
(replace ip.address
with the actual IP such as 192.168.1.1). This method works best for NFS shares like corporate file servers.To automate the process of adding a trusted site and adjusting the HTTPS requirement, use the following PowerShell script. This script is particularly useful if you need to make this change on multiple computers through an RMM tool.
# Define the network locations to add to Trusted Sites $trustedSites = @("file://myserver", "file://192.168.1.1") # Adding each site to the Trusted Sites Zone (Zone 2) foreach ($site in $trustedSites) { Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\$site" -Name http -Value 2 -Type DWORD Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\$site" -Name file -Value 2 -Type DWORD } # Disable the requirement of server verification (HTTPS) Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" -Name Flags -Value 67 -Type DWORD
This script will add your specified network locations to the Trusted Sites list and modify the HTTPS requirement setting. After running these steps, try clicking the hyperlink again in Outlook. The error should no longer occur, allowing the network file to open as intended.