Resetting the IIS Anonymous User Password

Source: Internet
Author: User
Tags metabase
IIS Anonymous user account Reset Password

If you get this:

HTTP 401.1: denied by invalid user credentials:

This error code will have you focus on the credentials of the IUSR account. if you are using ing a 401.1, from a IIS perspective it means we have to go and look at IIS to make sure the IUSR username and password is correct for anonymous access on all the IIS vdir's.

Occasionally the IIS Guest Account (IUSR _ account) has it's password out of sync between the IIS metabase, active directory or Sam (depending if the IUSR account is a local or domain account) and the credentials entered as the anonymous user and password for the WSUS virtual directories in IIS. we need to make sure that the correct user account and credentials are used at 2 places:
In active directory or local account.
In the IIS metabase.

Ensure that the IUSR account is not locked. Sometimes a 401.1 error cocould be caused by a locked IUSR account.

Then query the IIS metabase to establish what the existing IUSR password is:
Edit c: \ Inetpub \ adminscripts \ adsutil. vbs

Search for the line that reads "issecureproperty = true" and change it to "issecureproperty = false". Save and close the file.

From command line run:
Cscript adsutil. vbs get W3SVC \ anonymoususerpass

This will return an output like this:
Anonymoususerpass: (string) "thisistheiusraccountpassword"
Take note of the password, inside of the quotes. The quotes are not part of the password. For safety, copy it into notepad.

Go to either Active Directory (if a domain account is used for the IUSR account) or find the local account for IUSR. in most cases IUSR will be a local account. reset the password for your IUSR account with the password we just pulled from the IIS metabase.

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.