Advertisement
alcaron

PS-Example1.ps1

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