Reply to Message

View discussion in a popup

Replying to:
SBaldridge
Contributor
Contributor

DEM - Privilege Elevation & Elevated Tasks

I am trying to use DEM (v2006) to write to the HKLM and HKU hives when a user logs on.  I've created an Elevated Task like this:

>Executable:  C:\Windows\System32\cmd.exe

>Arguments:  /c REG ADD "HKLM\path to the key" /t REG_SZ /v NewValue /d 2 /f

>I checked the Run Async check box.

There is a logon task to run the elevated task which should run after profile import, run asynchronously.  I've tried putting quotes around the registry path and it doesn't help.

Problem - it does not fire and I see this logged:

[ERROR] Invalid settings for privilege elevation (TheTask.xml')

[DEBUG] Skipping disabled DEM privilege elevation setting ('TheTask.xml')

[INFO ] No privilege elevation settings applied

I have verified that Privilege Elevation is enabled in the Global Settings section in DEM.  I need some ideas on where to check and troubleshoot.  I followed this article to the letter and I just can't get it to work.  https://www.vjal.nl/dynamic-environment-manager/using-the-new-elevated-task-feature-in-dem-to-manage...