Configuring Anonymous Access via command line or script

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.
RyanC [ Mo, 26 Februar 2007 15:41 ] [ ID #1640641 ]

RE: Configuring Anonymous Access via command line or script

Fair to say you can also respond via the newsgroup, if email is too personal
for you.
--
Ryan C.


"Ryan C." wrote:

> 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.
RyanC [ Mo, 26 Februar 2007 16:44 ] [ ID #1640642 ]

RE: Configuring Anonymous Access via command line or script

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.


"Ryan C." wrote:

> 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.
RyanC [ Mo, 26 Februar 2007 17:15 ] [ ID #1640643 ]
Webserver » microsoft.public.inetserver.iis.security » Configuring Anonymous Access via command line or script

Vorheriges Thema: Prompts for username and password
Nächstes Thema: chabge authentication protocol