By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,716 Members | 1,296 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,716 IT Pros & Developers. It's quick & easy.

programatically remove authenticated users group & add IIS_WPG

P: n/a
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

Jul 27 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

"Kaush" wrote:
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
Jul 27 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.