JS获取IUSR_机器名和IWAM_机器名帐号的密码
人气:0
偶尔想知道IUSR和IWAM账号的密码,但是经常忘记adsutil.vbs的用法,今天查了一下,发现代码其实很简单:(另存为.wsf文件双击运行即可。)
<job><script language="javascript">
var IIS = GetObject("IIS://Localhost/W3SVC");
var IUSR = "IUSR_机器名的密码是:" + IIS.Get("AnonymousUserPass");
var IWAM = "IWAM_机器名的密码是:" + IIS.Get("WamUserPass");
WSH.Echo([IUSR, IWAM].join("\r\n"));
</script></job>
复制代码 代码如下:
<job><script language="javascript">
var IIS = GetObject("IIS://Localhost/W3SVC");
var IUSR = "IUSR_机器名的密码是:" + IIS.Get("AnonymousUserPass");
var IWAM = "IWAM_机器名的密码是:" + IIS.Get("WamUserPass");
WSH.Echo([IUSR, IWAM].join("\r\n"));
</script></job>
加载全部内容