There are two ways to create a DSC configuration (Learn more about the Desired State Configuration (DSC))
- use our DSC Configuration Wizard
- create your configuration locally
DSC Configuration Wizard
To use the DSC Configuration Wizard select Create configuration.
Now you have two options:
- add resources with DSC modules or
- use Group Policies.
For our first resource we use Add Resources.
The selected module is the PSDesiredStateConfiguration in Version 1.1 and the Registry resource. Enter your values as desired and save it.
After saving you may navigate to the MyExampleRegistry resource to see the parameters you have set.
To add a second resource we will use Group Policies. If you are used to configure Group Policies you will probably recognize some similarity.
Simply select the Group Polic Object (GPO) you want to enable and save it with a click on Close.
Now you see your created resources. The GPO is nothing more than a registry entry in the \SOFTWARE\Policies path.
Save your DSC configuration. Optionally you can enter a useful description for your colleagues and set it to active.
Create your configuration locally
We wrote a detailed instruction on how to write DSC configurations.
We recommend to use a code editor such as Visual Studio Code or IntelliJ IDEA. Find out more here: Configuration Management - Get Started.
However if you are already into writing DSC configurations yourself or simply want to manage them by yourself you can always upload your locally created configurations either compiled as .mof or .ps1 into XOAP.
Click on Add Configuration.
Browse to the location where your configuration resides and click on Save.