How to get the IUSR and IWAM user account passwords

Open up command prompt and navigate to C:\Inetpub\AdminScripts. Then type:
cscript.exe adsutil.vbs get w3svc/anonymoususerpass
If everything goes well, you will see the following with the password in ***** format:
C:\Inetpub\AdminScripts>cscript.exe adsutil.vbs get w3svc/anonymoususerpas
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

anonymoususerpass               : (STRING) "**********"
To display the IUSR and IWAM account passwords in cleartext, you need to open C:\Inetpub\AdminScripts and edit Adsutil.vbs in Notepad. Find this line:
    If (Attribute = True) Then
        IsSecureProperty = True
    Else
        IsSecureProperty = False
    End If
and change it to:
    If (Attribute = True) Then
        IsSecureProperty = False
    Else
        IsSecureProperty = False
    End If
Now run the script commands above again and you will see the passwords in clear text. Of course, please make sure to put Adsutil.vbs back to the way it was.
And the following command is to view the IWAM user password
cscript.exe adsutil.vbs get w3svc/wamuserpass
After you get these password, you can update the local account passwords by navigating to “My Computer”, right clicking “Manage” option to Computer Management console. And select “Local Users and Groups” node, then highlight the user “IUSR_SERVERNAME” and select reset password option. Do the same to the IWAM user, and restart the IIS Admin service then you are done.

Comments

Popular posts from this blog

WCF WSDL location address Issue resolved when hosted over HTTPS with basicHTTPBinding

Yellow Background issue in Word to PDF conversion

Gmail tricks - create unlimited siblings of your Gmail address