| Author |
Creating Scripts for Hardening IIS
|
|
| newsgroup user 2004-02-17, 2:34 am |
| I am looking to create a script to take away some of the redundency of going through each webserver that is created and choosing the same options over and over. Is there a way to script a lot of the setting in IIS?
An example of what I am looking to script is:
Home Directory tab – Set the following:
i. Read.
ii. Log visits.
iii. Deselect to index this resource unless you are using Index Server.
iv. Set Execute Permissions to Scripts only.
Thanks for any advice you may have!
| |
| Paul Baker [MVP, Windows - SDK] 2004-02-18, 12:34 am |
| I think there is, but how about backing up and restoring the metadata
instead?
Paul
"Adam" <anonymous@discussions.microsoft.com> wrote in message
news:1AC120F1-C61B-4DFA-BDAA-7282D7D3040B@microsoft.com...
> I am looking to create a script to take away some of the redundency of
going through each webserver that is created and choosing the same options
over and over. Is there a way to script a lot of the setting in IIS?
>
> An example of what I am looking to script is:
> Home Directory tab - Set the following:
> i. Read.
> ii. Log visits.
> iii. Deselect to index this resource unless you are using Index Server.
> iv. Set Execute Permissions to Scripts only.
>
> Thanks for any advice you may have!
| |
| Dan Szepesi 2004-02-18, 12:34 am |
| ADSI exposes a scripting API for modifying IIS, as well as WMI and of
course, the base admin objects are accessible if you are feeling really
tough.....
Have a look here:
http://msdn.microsoft.com/library/d...ure
s.asp
"Adam" <anonymous@discussions.microsoft.com> wrote in message
news:1AC120F1-C61B-4DFA-BDAA-7282D7D3040B@microsoft.com...
> I am looking to create a script to take away some of the redundency of
going through each webserver that is created and choosing the same options
over and over. Is there a way to script a lot of the setting in IIS?
>
> An example of what I am looking to script is:
> Home Directory tab - Set the following:
> i. Read.
> ii. Log visits.
> iii. Deselect to index this resource unless you are using Index Server.
> iv. Set Execute Permissions to Scripts only.
>
> Thanks for any advice you may have!
| |
| David Wang [Msft] 2004-02-26, 1:34 pm |
| IIS has a scriptable Administration API, via ADSI and WMI, that is available
to scripts. It is able to configure 100% of IIS features. The UI
intentionally does not expose all IIS features.
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Adam" <anonymous@discussions.microsoft.com> wrote in message
news:1AC120F1-C61B-4DFA-BDAA-7282D7D3040B@microsoft.com...
I am looking to create a script to take away some of the redundency of going
through each webserver that is created and choosing the same options over
and over. Is there a way to script a lot of the setting in IIS?
An example of what I am looking to script is:
Home Directory tab - Set the following:
i. Read.
ii. Log visits.
iii. Deselect to index this resource unless you are using Index Server.
iv. Set Execute Permissions to Scripts only.
Thanks for any advice you may have!
|
|
|
|