Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 625 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 625 Bytes

ClassBasedDscResource

Sample PowerShell class based DSC resource

Deployment

  • Create a module folder under $pshome\Modules or $env:SystemDrive\Program Files\WindowsPowerShell\Modules. You do not need to create DSCResource subfolder.
md SampleClassBasedResource
  • Copy the MyDscResource.psm1 and MyDscResource.psd1 to MyDscResource folder.

Run configuration

PS C:\git\SampleClassBasedResource\Examples> .\SampleClassBasedResourceConfiguration.ps1
PS C:\git\SampleClassBasedResource\Examples> Start-DscConfiguration -path .\SampleClassBasedResourceConfiguration -wait
-verbose