Quantcast
Channel: AutoSPInstaller
Viewing all articles
Browse latest Browse all 2279

Edited Issue: Open File Security Warning [22137]

$
0
0
Hi Brain. That's me again :-)

this time it's the AddSourcePathToLocalIntranetZone function which is not working when I try to install to service pack 1 from the updates folder or one of the prerequisites files 'WcfDataServices.exe'. There are several ways to disable this. I tried some of them but the the only one which worked is this one:
Disabling the prompt on the INTERNET zone (zone 3) for "Launching Applications and Unsafe Files".

Set-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3' -Name 1806 -Value 0

http://blogs.technet.com/b/askperf/archive/2007/11/27/managing-the-launching-applications-and-unsafe-files-setting.aspx

More details here:
https://support.microsoft.com/en-us/kb/182569
https://msdn.microsoft.com/en-us/library/ms537183(v=vs.85).aspx#internet

of course this is not safe and you we should not disable it in production permanently. What I do is as follow:
1. add this to the AddSourcePathToLocalIntranetZone with a value of 0
2. Create an additional function EnableIEUnsafeFilesPrompt which resets the value to 1 and call it in the Finalize-Install.

I'm using windows server 2012 R2
IE 11
IE Enhanced security is OFF.
The netbios name of server hosting share is present in the local intranet zone file://server (added by the autospinstaller script)

I think the warning pops up because the intranet zone settings are not detected correctly so the file is seen as being downloaded from the internet or an unsafe location. Like I said this is happening only for some files. the proposed fix takes care of this.

Viewing all articles
Browse latest Browse all 2279

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>