powershell-dsc

Configuring HKEY_CURRENT_USER with DSC Resource actually updates HKEY_USERS\.DEFAULT

送分小仙女□ 提交于 2019-12-24 01:53:22
问题 The following DSC declaration writes to Registry key HKEY_USERS.DEFAULT\Console instead of HKEY_CURRENT_USER\Console. Why? Registry ConsoleFaceName { Key = 'HKEY_CURRENT_USER\Console' ValueName = "FaceName" ValueData = "Lucida Console" Ensure = "Present" } 回答1: The behavior of writing to .DEFAULT is because the DSC Local Configuration Manager (LCM) is running as local system, which does not have a current user registry hive. If you want it to update a particular user you need to run using

Apply multiple DSCs through Azure Resource Manager

左心房为你撑大大i 提交于 2019-12-08 04:00:44
问题 Is it possible to apply multiple DSC configurations to one vm through Azure Resource Manager? Currently I am using something like this: { "apiVersion": "2015-06-15", "dependsOn": [ "[concat('Microsoft.Compute/virtualMachines/', variables('vm_name'))]" ], "location": "[resourceGroup().location]", "name": "DSCSetup", "properties": { "publisher": "Microsoft.Powershell", "type": "DSC", "typeHandlerVersion": "2.20", "autoUpgradeMinorVersion": true, "settings": { "modulesUrl": "[concat('https://',