Converting a GPO to DSC
DSC is all very well, but if you're an organization that has decades of history on Windows Server, then chances are you have a lot of things hidden away in GPOs. We looked at these back in Chapter 10, Group Policy. They are a great way of doing mass configuration, but they lack much of the finesse of DSC. After all, the GPO scheme is 20 years old now.
If you're looking to replace some of your old GPOs and extend them with DSC, the good news is that PowerShell has a way we can get started with this.
Getting ready
The easiest place to do this from is a Windows 10 computer that has Remote Server Administration Tools (RSAT) installed. Instructions on how to do this can be found in Chapter 1, Learning the Interface, in the Administering Server 2019 from a Windows 10 machine recipe.
How to do it…
From our computer running Windows 10 with RSAT, do the following:
- Open PowerShell as administrator.
- We need to decide which Group...