19 de fev de 2014

Recovering password for user IUSR or WAM




If the account of anonymous access in IIS has changed and now you need to go back to IUSR and do not know what to put in the password field at the inetmgr, follow these steps:

1 - On the server save the text below into a file on the desktop with the name like p.vbs:

Dim IIsObject, SiteObject Set IIsObject = GetObject ("IIS :/ / localhost/w3svc") Wscript.Echo Get_IUSR_Password (IIsObject) Wscript.Echo Get_IWAM_Password (IIsObject) Function Get_IUSR_Password (IIsObject) on error resume Next Dim Out Out = Out & vbCrLf & " AnonymousUserName = "& IIsObject.Get (" AnonymousUserName ") Out = Out & vbCrLf & " AnonymousUserPass = "& IIsObject.Get (" AnonymousUserPass ") If err = 0 Then Out = vbCrLf & " Path: "& IIsObject.AdsPath & Out Get_IUSR_Password = Out End Function Function Get_IWAM_Password (IIsObject) on error resume Next Dim Out Out = Out & vbCrLf & " WAMUserName = "& IIsObject.Get (" WAMUserName ") Out = Out & vbCrLf & " WAMUserPass = "& IIsObject.Get (" WAMUserPass ") If err = 0 Then Out = vbCrLf & " Path: "& IIsObject.AdsPath & OutGet_IWAM_Password = Out End Function

Link to the file. Save with vbs before running.

2 - After saving the file open a command prompt and run the file:

3 - Copy the password authentication method for IIS:

Ready! Now just re-access the web page for this server.
Postar um comentário