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