Files
PowerShell-PSDscResources/Examples/Sample_RegistryResource_AddKey.ps1
T
Mariah Breakey 1a8dfcfe66 porting registry
2016-12-16 20:56:52 -08:00

20 lines
511 B
PowerShell

<#
.SYNOPSIS
Create a new registry key called MyNewKey as a subkey under the key
'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'.
#>
Configuration Sample_RegistryResource_AddKey
{
Import-DscResource -ModuleName 'PSDscResources'
Node localhost
{
Registry Registry1
{
Key = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\MyNewKey'
Ensure = 'Present'
ValueName = ''
}
}
}