Configuring Anonymous Access via command line or script

Configuring Anonymous Access via command line or script

am 26.02.2007 15:41:18 von RyanC

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.

RE: Configuring Anonymous Access via command line or script

am 26.02.2007 16:44:03 von RyanC

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.

RE: Configuring Anonymous Access via command line or script

am 26.02.2007 17:15:00 von RyanC

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.