Tests/Integration/MSFT_RegistryResource_KeyAndNameOnly.config.ps1
param ( [Parameter(Mandatory = $true)] [String] $ConfigurationName ) Configuration $ConfigurationName { param ( [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] [String] $Key, [ValidateSet('Present', 'Absent')] [String] $Ensure = 'Present', [Parameter(Mandatory = $true)] [String] [AllowEmptyString()] $ValueName ) Import-DscResource -ModuleName 'PSDscResources' Node localhost { Registry Registry1 { Key = $Key Ensure = $Ensure ValueName = $ValueName Force = $true } } } |