Configuring HKEY_CURRENT_USER with DSC Resource actually updates HKEY_USERS\.DEFAULT
问题 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