Here is the XML:
<?xml version="1.0" encoding="utf-8"?><userEnvironmentSettings><setting type="privilegeElevation" elevate="C:\Windows\System32\cmd.exe*/c REG ADD HKU\.DEFAULT\Control Panel\Keyboard /t REG_SZ /v InitialKeyboardIndicatorsTEST /d 2 /f" elevationType="et" subType="elevatedtasks" async="1" /></userEnvironmentSettings>
I just tested with your XML, and there are a few issues:
- You need to put quotes around HKU\.DEFAULT\Control Panel\Keyboard, due to that space between Control and Panel. Without those quotes, REG.exe will fail.
- You configured cmd.exe as the executable to elevate, but did not check Also elevate child processes, so even with those quotes it would not work as REG.exe (cmd.exe's child process) wouldn't be elevated...
There's actually no need for the cmd.exe /C approach here (that's only required when you want to run commands that are built into cmd.exe), so I would use something like this instead:
- Not related to DEM itself, but I'm wondering whether changing anything in HKU\.DEFAULT serves a purpose after logon? The user's profile will already have been created from the default profile at that time.
However... The error messages you quoted point to some issue in parsing the config file, but the XML was actually perfectly fine from a syntax perspective. Just to make sure, can you double-check that the DEM agent is indeed version 2006 (10.0)?
Thank you for the answer and tips. Elevating child processes was my issue on the test pool I was using. As you mentioned, I was writing to HKU as a test, I don't think it would have any effect.
I appreciate your time. As it turns out in my prod pool, my DEM agent was not v10 as I thought, so that also answers my question.