Simple example - Enabling WindowsFeature

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

WindowsFeature is a Windows DSC resource. Call the configuration to compile .\EnableIISFeature\localhost.mof, then start it. -Path is required unless you use -UseExisting:

EnableIISFeature
Start-DscConfiguration -Path .\EnableIISFeature -ComputerName localhost -Wait

Feedback about page:

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



Table Of Contents