Skip to content

Instantly share code, notes, and snippets.

@gabrielrojasnyc

gabrielrojasnyc/DSC

Created Jan 6, 2016
Embed
What would you like to do?
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