daily pastebin goal
50%
SHARE
TWEET

PS-Example1.ps1

alcaron Feb 3rd, 2014 229 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'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top