Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Import-Module xDscResourceDesigner
- $Path = New-xDscResourceProperty -Name Path -Type String -Attribute Key
- $Content = New-xDscResourceProperty -Name Content -Type Boolean -Attribute Write
- $Ensure = New-xDscResourceProperty -Name Ensure -Type String -Attribute Write -ValidateSet "Present", "Absent"
- New-xDscResource -Name zTest -Property $Path, $Arguments, $Ensure -Path 'C:\Program Files\WindowsPowerShell\Modules\zTest'
- New-ModuleManifest -Path 'C:\Program Files\WindowsPowerShell\Modules\zTest\zTest.psd1'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement