Reply to Message

View discussion in a popup

Replying to:
DEMdev
VMware Employee
VMware Employee

Hi @Jubish-Jose,

If all you're using DEM for at the moment is dropping a shortcut into the Startup folder, the DEM version does indeed not matter.

If you want to check whether the shortcut was indeed created correctly, then you can the %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup folder. But given that the DEM log claims that the shortcut was created correctly, and that you need to run the script with admin privileges for it to work, I assume the shortcut is there, and it's just the non-elevated launch that does not have the intended effect.

If you want to stick with DEM 9.9 in your production environment for now, I would suggest to use argument-based privilege elevation. Something like the following:

DEMdev_0-1607543861482.png

(Or you can specify the name (and arguments) of your "compiled-script.exe", of course.) Then, add a shortcut to that executable with exactly those arguments in the Startup folder (or create a batch file to launch that exact exe+args combo, and launch that batch file from the Startup folder.) Once Explorer launches the shortcut, the executable is launched, and DEM will just-in-time elevate it.

If you can upgrade to DEM 2006 or later, you could use an elevated task instead. That way you don't need a shortcut.
Just define an elevated task:

DEMdev_1-1607544227684.png

and launch that from a DEM logon task:

DEMdev_2-1607544288757.png