Recently, some projects developed by the company need to run controls and DNS ing. users do not modify hosts files and trusted sites by themselves. Therefore, we have written a bat batch to modify hosts files and add trusted sites, the procedure is as follows:
: Add IP ing to change the hosts file
Type C:/Windows/system32/Drivers/etc/hosts
Type C:/Windows/system32/Drivers/etc/hosts | find "bieeserver" & goto Yes
: Echo 10.5.31.58 bieeserver> ""
Echo 10.5.31.58 bieeserver> C:/Windows/system32/Drivers/etc/hosts
: Yes
: Change the Registry to add Shenyang outlook software Co., Ltd. WP as a trusted site
Del C:/fosoft. Reg
Echo Windows Registry Editor Version 5.00> C:/fosoft. Reg
Echo [HKEY_CURRENT_USER/software/Microsoft/Windows/CurrentVersion/Internet Settings/zonemap/domains/forsoft.cn]> C:/fosoft. Reg
Echo [HKEY_CURRENT_USER/software/Microsoft/Windows/CurrentVersion/Internet Settings/zonemap/domains/forsoft.cn/appserver]> C:/fosoft. Reg
Echo "*" = DWORD: 00000002> C:/fosoft. Reg
Echo [HKEY_CURRENT_USER/software/Microsoft/Windows/CurrentVersion/Internet Settings/zonemap/domains/forsoft.cn/fwp]> C:/fosoft. Reg
Echo "*" = DWORD: 00000002> C:/fosoft. Reg
Echo [HKEY_CURRENT_USER/software/Microsoft/Windows/CurrentVersion/Internet Settings/zonemap/domains/forsoft.cn/wp]> C:/fosoft. Reg
Echo "*" = DWORD: 00000002> C:/fosoft. Reg
Regedit/s c:/fosoft. Reg
Del C:/fosoft. Reg
Pause & Exit