Posted by: Jerry Lees
iis, System Administration, Systems Administration, systems management, VBScript, VBScript Functions, web sites, web tools, working with objects
I recently posted a script that retrieved the anonymous user password for a server in IIS. This script I posted, Using the IIS ADSI object to retrieve the anonymous user password for a server via VBScript, came in quite handy in a pinch, but not knowing the anonymous user account the password goes with can also be a pain.Luckily I had that piece of information in the script as well!
So, I’ve wrapped that part of the script into a function for your use as well. Below is a snippet from the script to display the user account.
Set IIsObject = GetObject (“IIS://” & ServerName & “/w3svc”)
on Error resume Next
Get_IUSR_Username = IIsObject.Get(“AnonymousUserName”)
On Error GoTo 0