Examples/Sample_xWindowsFeature.ps1

1
2
3
4
5
6
7
8
9
10
11
Configuration xWindowsFeatureExample
{
    Import-DSCResource -ModuleName xPSDesiredStateConfiguration

    xWindowsFeature RoleExample
    {
        Ensure = "Present" # Alternatively, to ensure the role is uninstalled, set Ensure to "Absent"
        Name = "Web-Server" # Use the Name property from Get-WindowsFeature
    }
}