#PSTip Exploring DSC resources

Note: This tip requires PowerShell 4.0 or above.

In Windows Server 2012 R2 RTM build, Microsoft added a cmdlet called Get-DSCResource. This cmdlet helps us explore the DSC resources available on the local computer.

dsc-resource

The ImplementedAs property of the DSC resource tells us whether it is a PowerShell Script module or a Binary module.

implementedas

The “Properties” property of a DSC resource tell us what attributes can be used as a part of the configuration document.

properties

If we don’t know how to use the attributes of a DSC resource in a configuration document, we can use the –Syntax switch parameter of the Get-DSCResource cmdlet.

syntax

About the author: Ravikanth C

Ravikanth is the founder and editor of the PowerShell Magazine. He is also a PowerShell MVP who works at Dell Inc. He blogs at http://www.ravichaganti.com/blog and you can follow him on Twitter @ravikanth.

Related Posts

%d bloggers like this: