Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > iis security > february 2007 >

iis security : Configuring Anonymous Access via command line or script


Ryan C.
2/26/2007 6:41:18 AM
Good morning,

I've trolled most every forum and venue possible for this information, and
have come up empty handed thus far, so forgive me if I'm reposting a
previously answered question.

How can I check that little box that says "Anonymous access" in a
webshare/site's configuration, without using the GUI? I'd like to use the
command prompt if possible.

I'm already automating the site creation process using mkwebdir, but the
automation is hardly worth it if I have to go in and configure anonymous
acces anyway. The reason behind all of this is that I've written a sort of
'api' for our QA department to create instances of our web based application
via an easy to use interface.

Any assistance provided (perhaps with an example implimentation using
AdsUtil) would be greatly appreciated.

Reponses can be sent personally to IISQuestion at Im A super .come'on, you
can figure it out.
--
Ryan C.
2/26/2007 7:44:03 AM
Fair to say you can also respond via the newsgroup, if email is too personal
for you.
--
Ryan C.


[quoted text, click to view]
Ryan C.
2/26/2007 8:15:00 AM
I answered my own question.

To use the command line to configure a site for Anonymous Access, run the
following:
adsutil.vbs SET W3SVC/1/root/#SHARENAME#/AuthFlags 5

The value of 4 is Anonymous Disabled.

Regards,

Ryan C.


[quoted text, click to view]
AddThis Social Bookmark Button