Simple example - Enabling WindowsFeature

suggest change
configuration EnableIISFeature
{
    node localhost
    {
        WindowsFeature IIS
        {
            Ensure = “Present”
            Name = “Web-Server”                      
        }
    }
}

If you run this configuration in Powershell (EnableIISFeature), it will produce a localhost.mof file. This is the “compiled” configuration you can run on a machine.

To test the DSC configuration on your localhost, you can simply invoke the following:

Start-DscConfiguration -ComputerName localhost -Wait

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Desired state configuration:
* Simple example - Enabling WindowsFeature

Table Of Contents
1 Loops
19 XML
22 Strings
25 Aliases
32 Desired state configuration
47 MongoDB
65 AWS S3