Use adsutil. vbs to obtain the password of an IIS user

Source: Internet
Author: User

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 ".

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.