IE停用使用Edge企业模式记录P2
部署包制作
部署准备
准备过程中,相关资源可从官网下载,文中提供本站下载链接。
EDGE102.0.1245.33安装包
点此下载EDGE安装包
https://download.csdn.net/download/zhaolitoh/85629605
部署相关bat:
@ECHO OFF
::关闭EDGE浏览器,防止出错
taskkill /f /im msedge.exe
taskkill /f /im msedge.exe
taskkill /f /im msedge.exe
taskkill /f /im msedge.exe
::静默安装Edge浏览器
C:\edgeset\EDGEQY.msi /qn REBOOT=SUPPRESS
::复制策略文件到相关目录
copy /Y C:\edgeset\admx\msedge.admx C:\Windows\PolicyDefinitions\msedge.admx
copy /Y C:\edgeset\admx\msedgeupdate.admx C:\Windows\PolicyDefinitions\msedgeupdate.admx
copy /Y C:\edgeset\admx\msedgewebview2.admx C:\Windows\PolicyDefinitions\msedgewebview2.admx
xcopy /E /Y C:\edgeset\admx\zh-CN\*.* C:\Windows\PolicyDefinitions\zh-CN\*.*
xcopy /E /Y C:\edgeset\admx\ja-JP\*.* C:\Windows\PolicyDefinitions\ja-JP\*.*
xcopy /E /Y C:\edgeset\admx\en-US\*.* C:\Windows\PolicyDefinitions\en-US\*.*
::二次杀进程防止手欠
taskkill /f /im msedge.exe
::导入注册表,其中包含组策略与企业模式列表相关配置
regedit /s C:\edgeset\edge.reg
::清除相关文件
rmdir /S /Q C:\edgeset
部署相关VBS
这个VBS的目的是为了静默安装不弹出CMD的窗口
set ws=WScript.CreateObject("WScript.Shell")
ws.Run "C:\edgeset\edge.bat",0
部署相关注册表
文件中的链接为更新链接,请根据自身情况调整
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"InternetExplorerIntegrationTestingAllowed"=dword:00000001
"BlockThirdPartyCookies"=dword:00000000
"CookiesAllowedForUrls"="https://updata.synapsenis.com/"
"InternetExplorerIntegrationSiteList"="https://updata.synapsenis.com/"
"InternetExplorerIntegrationReloadInIEModeAllowed"=dword:00000001
"InternetExplorerIntegrationLevel"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Edge\IEToEdge]
"RedirectionMode"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main\EnterpriseMode]
"SiteList"="https://updata.synapsenis.com"
EDGE102.0.1245.33策略包
官方下载链接:https://www.microsoft.com/en-us/edge/business/download
点此下载
或
资源下载链接:https://download.csdn.net/download/zhaolitoh/85629850
点此下载
下载解压后,将标注的文件单独放在部署包文件夹内,对应bat文件的相关路径
至此,部署包内文件准备完成,如下所示:
部署包制作
使用压缩软件进行压缩,生成自解压文件。