Whenever you try to run any script, batch file or an executable from UNC path, it’s opening a Security Warning. Actually this will prevent you from running any application from network path.
If you are planning to deploy anything via script from network path, this security warning will prevent you from executing that.
But you can easily manage it from Domain Controller via Group Policy on Computer or User Configuration as per your requirement. Apply following GP Settings to disable this warning.
User/Computer Configuration>Administrative Templates>Internet Explorer>Internet Control Panel>Security Page
Then, double click on “Site to Zone Assignment List” and the following window will appear.
After Enable click Show… button and add the source IP and its value on that field.
Note: Value 1 for Intranet zone, value 2 for Trusted Sites zone, value 3 for Internet zone and value 4 for Restricted Sites zone.
After applying this GP setting you can run any script, batch file or executable file form that IP without any security warning.
On the same way you can add any site any site (FQDN)/IP to the Intranet Zone, Internet Zone, Trusted Site or restricted sites.
Disclaimer: All posts and opinions on this site are provided AS IS with no warranties. These are our own personal opinions and do not represent our employer’s view in any way.
This article currently have 36,154 views
I am an IT Professional with 12+ years of experience in Windows, Storage, Backup, AWS and Azure. I love writing scripts using PowerShell. I loved to share my experience with rest of the world via this blog. I love my Echo Dot (3G). I love playing PUBG on my mobile.
This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License.