porting registry

This commit is contained in:
Mariah Breakey
2016-12-16 20:56:52 -08:00
parent 15b40ddabd
commit 1a8dfcfe66
16 changed files with 6906 additions and 2 deletions
@@ -0,0 +1,27 @@
<#
.SYNOPSIS
If the registry key value MyValue under the key
'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' does not exist,
creates it with the Binary value 0.
If the registry key value MyValue under the key
'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' already exists,
overwrites it with the Binary value 0.
#>
Configuration Sample_RegistryResource_AddOrModifyValue
{
Import-DscResource -ModuleName 'PSDscResources'
Node localhost
{
Registry Registry1
{
Key = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'
Ensure = 'Present'
ValueName = 'MyValue'
ValueType = 'Binary'
ValueData = '0x00'
Force = $true
}
}
}