Skip to content

Instantly share code, notes, and snippets.

@signalwarrant
Created March 9, 2021 19:00
Show Gist options
  • Save signalwarrant/ba261e01e324079eef88c36d00ee9d10 to your computer and use it in GitHub Desktop.
Save signalwarrant/ba261e01e324079eef88c36d00ee9d10 to your computer and use it in GitHub Desktop.
DSCResources.ps1
# 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-DscResource
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment