Skip to content

Instantly share code, notes, and snippets.

@gabrielrojasnyc
Created January 6, 2016 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielrojasnyc/a7ffb978a82a72819ba1 to your computer and use it in GitHub Desktop.
Save gabrielrojasnyc/a7ffb978a82a72819ba1 to your computer and use it in GitHub Desktop.
DSC GPO resources
Configuration MODGPO {
param($NodeVM)
Node $NodeVM {
Ensure = 'Present'
Key = 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System'
ValueName = 'LegalNoticeCaption'
ValueData = 'This system is proctected by State and Federal law'
ValueType = 'String'
}
}
Configuration NoLockScreenGPO {
param($NodeVM)
Node $NodeVM {
Ensure = 'Present'
Key = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization'
ValueName = 'NoLockScreen'
ValueData = '1'
ValueType = 'DWORD'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment