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.