Skip to content

Instantly share code, notes, and snippets.

@ekmixon
Forked from signalwarrant/DSCResources.ps1
Created October 4, 2021 18:06
Show Gist options
  • Select an option

  • Save ekmixon/43c331b7f6091fc9cf4f2bee4cddf884 to your computer and use it in GitHub Desktop.

Select an option

Save ekmixon/43c331b7f6091fc9cf4f2bee4cddf884 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