This is my personal blog. The opinions and views I express are my own. The information I provide is on an as-is basis. I make no representations as to accuracy, completeness, currentness, suitability, or validity of any information on this blog and will not be liable for any errors, omissions, or delays in this information or any losses, injuries or damages arising from its use.

How to view PowerShell Desired State Configuration Manager resource properties

Since my two previous Desired State Configuration Manager videos, I have gotten more than a few questions asking how to view a specific DSC resources properties. Unlike your typical PowerShell CMDlet, you can’t view properties of a DSC resource using Get-Member. To view DSC resource properties you have to use Get-DSCResource, take a watch and I’ll learn you how.


# NoGo
Get-Command -Module xPSDesiredStateConfiguration

# NoGo
xService | Get-Member

# Shows all DSC Resources currently installed in PS ModulePath
# Access PSModulepath 
# cd env:
# dir | Where-Object Name -eq PSModulePath

# Get all the DSC Resources in the xPSDesiredStateConfiguration Module
Get-DscResource -Module xPSDesiredStateConfiguration

# How to view the properties of DSC Resources
Get-DscResource -Name xService | Select-Object -ExpandProperty Properties


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.