Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.4 KB

index.md

File metadata and controls

29 lines (21 loc) · 1.4 KB
title description ms.date ms.topic
WinGet Desired State Configuration
WinGet Desired State Configuration (DSC) consist out of PowerShell class-based DSC resources targeting PowerShell 7.2+. Each module exposes classes that can be invoked through multiple tools
10/23/2024
overview

WinGet Desired State Configuration (DSC) consist out of PowerShell class-based DSC resources targeting PowerShell 7.2+. Each module exposes classes that help you configure your machine in the desired state. The DSC resources is developed around the Get-Test-Set methods. If applicable, the team attempts to implement new methods known to newer versions of DSC.

To learn more about the newer DSC version, check out https://learn.microsoft.com/en-us/powershell/dsc/overview?view=dsc-3.0

Getting started

To get started, you can find the available published modules on the PowerShell Gallery. If you have found your module, you can install it with:

$moduleName = '<moduleName>'
Install-PSResource -Name $moduleName -Repository PSGallery

Use the following commands to list out the exported DSC resources from the module or use Get-DscResource to discover properties:

# discover exported DSC resources
(Get-Module -Name $moduleName -ListAvailable).ExportedDscResources

# find available properties
Get-DscResource -Module $moduleName