Programmatically accessing individual file security configuration

From: David Miller (dmiller_at_crowechizek.com)
Date: 12/18/03


Date: 18 Dec 2003 14:40:38 -0800

I currently have a manual process as a part of an install that I'm
trying to automate. Is there any way to do the following to an
individual FILE within a virtual directory through ADSI, WMI, or some
other means (ie. Win32 API's)?

a. Run Start-Programs-Administrative Tools-Internet Services Manager
b. Double click the server name to expand the server web sites.
c. Double click the Default web site to expand it
d. Double click the virtual directory folder to expand it.
e. In the right pane, right click leadnote.asmx
f. Click the file security tab.
g. In the Anonymous access and authentication control section, click
the edit button
h. Check basic authentication. Make sure all other options are
unchecked.
i. Click the OK button.
j. In the secure communications section, click the Edit button.
k. Uncheck Require Secure Channel.
l. Click OK.
m. Click OK.
n. Close Internet Services Manager.

Any help (especially sample code) would be GREATLY appreaciated!

Dave