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 my own personal opinions and do not represent my employer’s view in any way.
This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License.