Desired State Configuration (DSC) allows for the ability to configure the state of Windows devices running Powershell V4. This is very similar to solutions like Chef and Puppet which mainly focus on Linux based devices although DSC can be tied into these other solutions to configure Windows devices. The stages to DSC are:
- Author - Creating your configuration
- Stage - Converting your configuration to .MOF
- Apply - Running the .MOF file (Your configuration) .MOF stands for Management Object Format.
More on the .MOF can be found here.
Basic DSC Example
The below command will compile the DSC configuration called WebServer to .MOF files for each NodeName listed.
To apply the configuration, your need to use the Start-DSCConfiguration cmdlet which is part of the PSDesiredStateConfiguration module. The cmdlet will copy the .MOF files to the specified servers and use the specified servers Local Configuration Manager (LCM) engine to comply with the configuration.
For a list of other built in DSC resources check here.