Recreate MOF based DSC resources as Class based DSC resouces
summary
Recreates a MOF‑based DSC resource as a class‑based resource and shows a concrete bugfix (string vs integer comparison) in Microsoft’s xRemoteDesktop module, builds modules and manifests with XDScResourceDesigner and Plaster, deploys to a Server 2016 VM via GitHub and PowerShell, and successfully disables RDP via registry keys. Demonstrates reduced code and no schema MOF with a PowerShell 5 class-based resource, notes PS5 debugging/versioning quirks and that PS5.1 likely fixes debugging.
AI-written summary · about
chapters (8)
- 0:00Start
- 3:24Remote DesktopAdmin DSC resource
- 33:44Requirements
- 37:32MOF Based DSC Resource
- 38:04Naming Convention
- 38:30Required Functions
- 39:22Class Based DSC Resources
- 39:38Refactoring
related talks
45mDesired State Configuration (DSC) Version 3
01h 52mThe DSC project blueprint or how to start a DSC project the right way
45mWriting DSC Resources for Azure Policy Guest Configuration - For...
51mDSC v3: Evolving Declarative Configuration for Modern Systems
01h 18mBuilding DSC v3 Resources
03h 28mEntra ID & M365 as Code with DSC
44mDesired State Configuration v3
47mARM FTW – Azure Resource Manager For The Win
