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