Skip to content

Instantly share code, notes, and snippets.

@bgelens
Created May 2, 2017 11:29
Show Gist options
  • Save bgelens/6d818bc76227893d11075ee7c2dc9b85 to your computer and use it in GitHub Desktop.
Save bgelens/6d818bc76227893d11075ee7c2dc9b85 to your computer and use it in GitHub Desktop.
Create code
New-xDscResource -ModuleName NetworkingDsc -Name MSFT_LMHost -FriendlyName LMHost -ClassVersion 1.0.0.0 -Path ..\Demo -Property @(
New-xDscResourceProperty -Name IsSingleInstance -Attribute Key -Type String -ValidateSet 'Yes' -Description "This is a system wide setting and can only be applied once"
New-xDscResourceProperty -Name Enable -Type Boolean -Attribute Required -Description "This will Enable or Disable LMHost lookup"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment