修改注冊表添加信任站點及啟用Activex控件
修改注冊表添加信任站點及啟用Activex 控件修改注冊表添加信任站點及啟用Activex 控件////////////////////////////////////////////////////
修改注冊表添加信任站點及啟用Activex 控件
修改注冊表添加信任站點及啟用Activex 控件
//////////////////////////////////////////////////////////////////////// //
// 添加信息站點及將指定IP 添加到本地Intranet 中,
// "*"=dword:00000002 表示受信任的站點區(qū)域
// "*"=dword:00000001 表示本地 Intranet 區(qū)域
//
//////////////////////////////////////////////////////////////////////// Windows Registry Editor Version 5.00
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapRanges]
@=""
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapRangesRange100]
"*"=dword:00000002
":Range"="192.168.10.121"
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapRangesRange101]
"*"=dword:00000001
":Range"="192.168.10.121"
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2]
@=""
"DisplayName"="可信站點"
"CurrentLevel"=dword:00001000
"Flags"=dword:00000043
"1004"=dword:00000000
"1201"=dword:00000000
"1402"=dword:00000000
"2201"=dword:00000000
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones1]
@=""
"DisplayName"="本地 Intranet"
,"CurrentLevel"=dword:00000000
"1001"=dword:00000000
"1004"=dword:00000000
"1201"=dword:00000000
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3]
@=""
"DisplayName"="Internet"
"CurrentLevel"=dword:00000000
"1001"=dword:00000000
"1004"=dword:00000000
"1201"=dword:00000000
///////////////////////////////////////////////////////////////////////////// //
// 通過網頁修改activex 安全設置,添加信任站點,禁用彈出窗口阻止程序 //
///////////////////////////////////////////////////////////////////////////// 信任站點的注冊表項
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapRangesRange
?
ActiveX 的注冊表項
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones[0-4]
?
[0-4]
值 設置
------------------------------
0 我的電腦
1 本地 Intranet 區(qū)域
2 受信任的站點區(qū)域
3 Internet 區(qū)域
4 受限制的站點區(qū)域
?
1001 下載已簽名的 ActiveX 控件
,1004 下載未簽名的 ActiveX 控件
1200 運行 ActiveX 控件和插件
1201 對沒有標記為安全的 ActiveX 控件進行初始化和腳本運行
1405 對標記為可安全執(zhí)行腳本的 ActiveX 控件執(zhí)行腳本
2201 ActiveX 控件自動提示 **
彈出窗口阻止程序的注冊表項
HKEY_CURRENT_USERHKCUSoftwareMicrosoftInternet ExplorerNew WindowsPopupMgr 具體腳本如下:
,URL:
比如說我們要把www.Microsoft.com 添加到客戶的受信任站點
1. 運行regedit, 打開注冊表, 首先打開下面的鍵值
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInte
rnet SettingsZoneMapDomains
2. 在其下面新建一個項命名為"Microsoft.com"
3. 在Microsoft.com 下面再新建一個項, 命名為"www"
4. 在www 下新鍵一個雙字節(jié)子鍵, 命名為"*","*"表示任何協(xié)議, 你還可以把
"*"替換為"http","ftp" 等其它名稱
5. 雙擊剛才新建的雙字節(jié)子鍵"*",確?;鶖?shù)里選擇是" 十六進制", 在數(shù)值
數(shù)據(jù)種填寫"2"
6. 關閉注冊表
Windows Registry Editor Version 5.00
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet settingszonemap] @=""
"proxybypass"=dword:00000001
"intranetname"=dword:00000001
"uncasintranet"=dword:00000001
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet
settingszonemapdomains]
@=""
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet
settingszonemapEscDomainsxxx.com]
注:xxx.com 為你要加入可信任站點里的某網站域名,去掉前面的主機頭如www,oa..... 等
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet
,settingszonemapEscDomainsxxx.comwww]
注:把主機頭加入進去,如www.xxxcom 中,把www 加入;如果是oa.xxx.com ,則上面變成 [hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet settingszonemapEscDomainsxxx.comoa]
"http"=dword:00000002
注:加入http 頭進去
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet
settingszonemapEscRangesrange9]
":Range"="222.222.222.222"
"http"=dword:00000002
注:如果沒有域名的話,把IP 地址加入信任站點,信息存儲在
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet
settingszonemapEscRanges下,它是以range1,range2...... 依次遞增。如果不知道目前排多少位,則直接加入一個比較大的數(shù)據(jù),如示例中加入‘range9’
":Range"="222.222.222.222" 其中222.222.222.222為要加入的IP 地址
"http"=dword:00000002
上面就是如何把一個網站的域名或者IP 地址加入到可信任站點中
下面是介紹如何把一個信任站點的自定義級別中,關于ActiveX 相關設置均改成‘啟用’ ===============================================================
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet settingsZones2] "1001"=dword:00000000
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet settingsZones2] "1004"=dword:00000000
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet settingsZones2] "1200"=dword:00000000
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet settingsZones2] "1201"=dword:00000000
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet settingsZones2] "1206"=dword:00000000
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet settingsZones2] "1405"=dword:00000000
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet settingsZones2] "1406"=dword:00000000
其中,dword 的值為00000000 為‘啟用’; 00000001 為‘提示’; 00000000為‘禁用’
下面是對可信站點是否啟用‘對該區(qū)域中的所有站點要求服務器驗證(https )(s )進行設置 ==================================================================
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet settingsZones2]
,"flags"=dword:00000043
其中,dword:00000043 表示啟用,即勾選上
dword:00000047 表示不啟用,去掉復選項里面的對勾
--------------------------------------------------------------------------------------------------------------------
***************************************************************************** 注:上面是在win2003 Server操作系統(tǒng)上實現(xiàn)!
在WinXP 系統(tǒng)上,
把網址域名加入信任站點
[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet
settingszonemapEscDomainsxxx.com] 把EscDomains 改為Domains
把IP 地址加入注冊表實現(xiàn)方法是這樣(示例IP:000.123.456.789)
[[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet
settingszonemapDomainsE6.789 最后兩位數(shù)字
[[hkey_current_usersoftwaremicrosoftwindowscurrentversioninternet
settingszonemapDomainsE6.7890.123 前兩位數(shù)字
"http"=dword:00000002