Simple example - Enabling WindowsFeature
suggest changeconfiguration 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
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents