programatically remove authenticated users group & add IIS_WPG

G

Guest

Greetings,

I am working on an application that will remove the NT
authority/Authenticated users group and add IIS_wpg group along with other
groups on IIS virtual directories. Can some one help me to find out a way to
determin if IIS_WPG group and its default members exist on the web server. I
read about system.directoryservices.directoryentry and use
"winnt://servername..." to connect to local computer and get the groups but
this doesnt work on my Win 2003 VMWare box. I get {"Unknown error
(0x80005000)"} on all the properties in quickview. Is this not how you can
enumerate local groups?

Please advice.

Thansk,
Kaush
 
G

Guest

Okay I figure it out. I never knew that the DirectoryServices class and ADSI
need the path with correct case. I was trying "winnt://severname" but as
soon as I changed it to "WinNT://servername", it worked. I though case did
not matter but now I know.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top