Actually, I ran the function from the VBS (slightly changed):
Function GetBlockedIPs()
Dim rootObj
Dim ipSecObj
rootObj = GetObject("IIS://localhost
ipSecObj = rootObj.IPSecurity
GetBlockedIPs = ipSecObj.IPDeny
End Function
And it returns the test IP addresses I put on the deny list.
Main Topics
Browse All Topics





by: farsightPosted on 2007-01-07 at 23:24:49ID: 18265219
You're using ADSI & VBscript.
laws/archi ve/2003/12 /06/41776. aspx
lhost/w3sv c"); ex.ToStrin g(),"IIsWe bServer"); criptMaps" ].Value;
om/vb/mess age.asp?p= 2924&r=550 1142
ssue/01071 0.htm
ssue/02073 0.htm
Use the System.DirectoryServices namespace to use ADSI in .NET.
ADSI:
Hint 1 from: http://weblogs.asp.net/rmc
---
using System.DirectoryServices;
public void GetMaps(int site_index)
{
DirectoryEntry ent = new DirectoryEntry("IIS://loca
DirectoryEntry child = new DirectoryEntry();
child = ent.Children.Find(site_ind
Array arr = (Array)child.Properties["S
foreach(string map in arr)
{
// do whatever here
}
---
ADSI & WMI:
Hint 2: http://www.developersdex.c
ADSI + .NET: (THIS ONE MAY HELP A LOT.)
Hint 3: http://www.15seconds.com/i
ADSI + .NET:
Hint 4: http://www.15seconds.com/i
Sorry, I don't have all the details.