2

#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

Filed in: Columns, Tips and Tricks Tags: , ,

2 Responses to "#PSTip Exploring DSC resources"

Leave a Reply

Submit Comment

© 2016 PowerShell Magazine. All rights reserved. XHTML / CSS Valid.
Proudly designed by Theme Junkie.
%d bloggers like this: