Sunday, December 20, 2009

Getting the password of the IIS users IUSR_MachineName and IWAM_MachineName


Copy the following code into a .vbs file and run it on the machine you wish to get the account details from.


Dim IIsObject
Set IIsObject = GetObject ("IIS://localhost/w3svc")
WScript.Echo "UserName = " & IIsObject.Get("AnonymousUserName") & vbCrlf & _
"UserPass = " & IIsObject.Get("AnonymousUserPass") & vbCrlf & vbCrlf &_
"WAMUser = " & IIsObject.Get("WAMUserName") & vbCrlf & _
"WAMPass = " & IIsObject.Get("WAMUserPass")
Set IIsObject = Nothing


No comments:

Post a Comment