-
Notifications
You must be signed in to change notification settings - Fork 128
IisServer
Michael Rasmussen edited this page Jan 29, 2026
·
3 revisions
A composite DSC resource to manage the IIS Server STIG settings
None
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| IisVersion | True | String | The version of the IIS STIG to apply and monitor | 8.5,10.0 |
| LogPath | True | String | The path to store log information | |
| StigVersion | False | Version | Uses the OsVersion and OsRole to select the version of the STIG to apply and monitor. If this parameter is not provided, the most recent version of the STIG is automatically selected. | 1.1 |
| Exception | False | PSObject | A hashtable of @{StigId = @{Property = 'Value'}} that is injected into the STIG data and applied to the target node. | |
| OrgSettings | False | PSObject | The path to the xml file that contains the local organizations preferred settings for STIG items that have allowable ranges. | |
| SkipRule | False | PSObject | The SkipRule Node is injected into the STIG data and applied to the taget node. The title of STIG settings are tagged with the text 'Skip' to identify the skips to policy across the data center when you centralize DSC log collection. | |
| SkipRuleType | False | PSObject | All STIG rule IDs of the specified type are collected in an array and passed to the Skip-Rule function. Each rule follows the same process as the SkipRule parameter. |
<#
Use the embedded STIG data with default range values to apply the most recent STIG settings.
In this example, the composite resource gets the highest IIS 10.0 Server STIG version
file it can find locally and applies it to the server. The composite resource merges in the
default values for any settings that have a valid range.
#>
configuration Example
{
param
(
[parameter()]
[string]
$NodeName = 'localhost'
)
Import-DscResource -ModuleName PowerStig
Node $NodeName
{
IisServer BaseLine
{
IIsVersion = '10.0'
LogPath = 'C:\logs'
}
}
}
Example- Home
- What is a PowerShell Module
- What is a PowerShell DSC Resource
- What is a PowerShell DSC Composite Resource
- Composite Resources
- What are Organizational Settings
- Documentation via STIG Checklists
- DoD Root Certificate Rules
- PowerSTIG & DSC for Linux
- Backup and Revert Settings
- PowerSTIG Archive Log
- PowerSTIG with Azure Automation
- STIG Caveats
- STIG Coverage Summary