作者:男人不用卫生巾 | 来源:互联网 | 2023-09-04 20:26
将代码存为trustedsite.js,在客户端执行varsitenameacmnetsettrustsite(sitename);wscript.echo(youhavea
将代码存为trustedsite.js,在客户端执行
var sitename="acmnet"
settrustsite(sitename);
wscript.echo("you have accept https://acmnet/ as your trusted site");
function settrustsite(strsitename)
{
var wshshell=wscript.createobject("wscript.shell");
wshshell.regwrite("hkey_current_user\software\microsoft\windows\currentversion\internet settings\zonemap\domains\"+strsitename+"\http", 2 ,"reg_dword");
trustedsite_value=wshshell.regread("hkey_current_user\software\microsoft\windows\currentversion\internet settings\zonemap\domains\"+strsitename+"\http");
delete wshshell;
}