Lead Image © liudmilachernetska, 123RF.com
Desired State Configuration v3
All the Best
On Windows, Desired State Configuration version 3 (DSCv3) is installed in the form of a command-line application named dsc.exe. The Local Configuration Manager (LCM) is not used any more, eliminating the process of compiling the desired configuration to managed object format (MOF) files. Therefore, you must apply the configuration file as needed – most simply as a scheduled task.
Existing DSC resources are integrated by an adapter model and continued use is assured. To make it easier to distinguish between the versions, Microsoft now refers to the first two DSC versions as PowerShell DSC (PSDSC). PSDSC configurations can be used in parallel and, although the first two versions are deprecated, support will continue in the foreseeable future.
Getting Started
For an initial look at DSCv3, install the command-line application from App Installer | WinGet on Windows 11. You will find the DesiredStateConfiguration package in the Microsoft Store:
winget search --query DesiredStateConfiguration winget install --id 9NVTPZWRC6KQ --source msstore
Alternatively, you can specify WinGet as the package source, named Microsoft.DSC here. Applications installed from the Microsoft Store are automatically updated. Of course, you can use other sources or installation methods; the DSC package is available for manual download on the project pages, as well [1].
After completing the install, dsc is available as a command-line application; you can access it by typing:
Get-Command -Name dsc
Several options are available:
dsc --versiondisplays the version number (e.g., 3.1.2).dsc --helpdisplays help.dsc resource listlists native DSCv3
...
Buy this article as PDF
(incl. VAT)
Buy ADMIN Magazine
Subscribe to our ADMIN Newsletters
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Most Popular
Focus On Self-Hosting
• Reliable Network Storage with TrueNAS Community Edition
• Self-Hosted File Syncing with Seafile
• Wiring the Modern Stack with Node-RED
• Self-Hosted Collaboration with Forgejo
• Self-Hosted PaaS with Coolify
• Build and Host Docker Images
• Self-Hosted Pritunl VPN Server with MFA
Support Our Work
ADMIN content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.
