Recommended: ASP code: rs.open statement details the following quoted content: '*************************************** ****************************'rs.open statement details 'rs.Open [first parameter],
Q: We want to grant access to the Web anonymous user account to read information from other systems; however, we do not know the password for that account. How can I get this password?
Answer: The IUSR_<Computer Name> account is an anonymous web user account, which was created during the installation of IIS. This password is stored in the local SAM (in Active Directory for Windows 2000 domain controllers), and it is also stored in Metabase. Since the password is stored in Metabase, you can use a .vbs script to extract the passwords of two accounts, IUSR and IWAM, as follows:
Program code
| The following is the quoted content: |
Dim IIsObject
Set IIsObject = GetObject (IIS://localhost/w3svc)
WScript.Echo AnonymousUserName = & IIsObject.Get(AnonymousUserName) & vbCrlf & _
AnonymousUserPass = & IIsObject.Get(AnonymousUserPass) &vbCrlf &vbCrlf &_
WAMUserName = & IIsObject.Get(WAMUserName) & vbCrlf & _
WAMUserPass = & IIsObject.Get(WAMUserPass)
Set IIsObject = Nothing
Note: This script can display the IUSR and IWAM account passwords set for the Web service at the main attribute level. If you have configured anonymous verification to access a website or directory using another user account, you must modify the script accordingly to reflect the updates made.