all groups > iis security > december 2004 >
You're in the

iis security

group:

Set security options for website/web objects in VB code


Set security options for website/web objects in VB code Henry
12/23/2004 3:35:01 AM
iis security:
Hi,

how can I set security options for a website and for single objects of the
website in my VB.Net code?

Actually I have to write a patch program for some of our customer
installations that

1) disables the anonymous user access for all website objects
2) afterwards enables anonymous user access for a certin web service of this
website.

I would prefer to do this in a VB.Net program without having to install the
whole web application again.

Thanks in advance.

Best regards

RE: Set security options for website/web objects in VB code Henry
12/24/2004 3:17:01 AM
Hi,
thanks a lot, got it working with your help.!
Regards
Henry

[quoted text, click to view]
RE: Set security options for website/web objects in VB code v-wzhang NO[at]SPAM online.microsoft.com (
12/24/2004 9:17:50 AM
Hi Henry,

For .net IIS admin programming, please refer to:

Using System.DirectoryServices to Configure IIS
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissd
k/iis/using_system_directoryservices_to_configure_iis.asp

To modify anonymous access setting, you have to edit AuthFlags
property:

AuthFlags
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissd
k/iis/ref_mb_authflags.asp

( AuthFlags = 1 means only anonymous is allowed )

Also you can install MetaEdit(for IIS5.x) or Metabase Explorer to
view metabase structure. Everything will be clear to you then.

How To Install MetaEdit 2.2 on Windows NT 4.0 or Windows 2000
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q301386&sd=tec
h

IIS 6.0 Resource Kit Tools
http://www.microsoft.com/downloads/details.aspx?displaylang=en&familyi
d=56fc92ee-a71a-4c73-b628-ade629c89499

HTH

Thanks.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
RE: Set security options for website/web objects in VB code v-wzhang NO[at]SPAM online.microsoft.com (
12/27/2004 8:24:53 AM
You are welcome. :-)
Merry Christmas!

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
AddThis Social Bookmark Button