DscResources/RegistryValues/RegistryValues.schema.psm1
Configuration RegistryValues { Param( [Parameter(Mandatory)] [hashtable[]]$Values ) Import-DscResource -ModuleName xPSDesiredStateConfiguration -ModuleVersion 8.6.0.0 foreach ($value in $values) { $executionName = ($value.Key + '\' + $value.ValueName) -replace ' ', '' (Get-DscSplattedResource -ResourceName xRegistry -ExecutionName $executionName -Properties $value -NoInvoke).Invoke($value) } } |