How to Use adsutil. vbs
IIS provides a script file named adsutil. vbs for obtaining or setting the IUSR and IWAM account passwords in the IIS metabase. In Windows NT 4.0, adsutil. vbs is usually located in the <drive> \ winnt \ system32 \ inetsrv \ adminsamples folder. In Windows 2000, adsutil. vbs is located in the <drive> \ Inetpub \ adminscripts folder.
The following table lists the syntaxes for various features of the adsutil. vbs utility:
Function syntax
Get IUSR account password cscript.exe adsutil. vbs get w3svc/anonymoususerpass
Get IWAM account password cscript.exe adsutil. vbs get w3svc/wamuserpass
Set IUSR account password cscript.exe adsutil. vbs set w3svc/anonymoususerpass "password"
Change IUSR account cscript.exe adsutil. vbs set w3svc/anonymoususername "username"
Set the IWAM account password cscript.exe adsutil. vbs set w3svc/wamuserpass "password"
Change IWAM account cscript.exe adsutil. vbs set w3svc/wamusername "username"
Note: When you try to obtain the password in Windows NT 4.0, the password is displayed as a plaintext, but in Windows 2000, the password is displayed as an asterisk. To display the password as a plaintext in Windows 2000, you must modify adsutil. vbs to display the plaintext. To do this, follow these steps: 1. Open adsutil. vbs in notepad.
2. On the "edit" menu, click "Search", type issecureproperty = true, and then click "find next ".
3. Change "issecureproperty = true" to "issecureproperty = false ".
4. Save the changes made to adsutil. vbs, and disable notepad ".