Bulk convert existing shortcuts to Dynamic Environment Manager

Bulk convert existing shortcuts to Dynamic Environment Manager

I created a small script that allows you to select a folder that contains existing shortcuts (LNK files) and export them to a folder, where they are saved as DEM XML (shortcut) files.

05/27/2020 - Version 0.4 Changes

  • Important notice about VMware support is added
  • Comment from shortcuts (if present) is automatically converted to DEM XML
  • Additional SOURCE and TARGET path checking

Getting started

Open PowerShell and run the following script.


-- or --

Right-click the script in Windows Explorer and click Run with PowerShell.


Select the source folder that contains the shortcuts (LNK files) you want to convert.


Select the target folder where you want to save the DEM XML files.


Copy the XML files to your DEM configuration share (one by one, or all in one).


The location you want to copy the DEM XML files to is typically something like \\server\demconfigshare$\general\FlexRepository\Shortcut.

⚠️ I recommend to test the shortcuts in a test or acceptance environment first, before putting in them in production.

Background and introduction can be found here: https://www.ivandemes.com/bulk-convert-shortcuts-to-dynamic-environment-manager/

The script can be found on GitHub: https://github.com/ivandemes/Convert-LNK2DEMXML


Nice work, Ivan​!

We do not officially support creating configuration files outside of the Management Console, but as long as the DEM agent and Management Console can't tell the difference, who can tell? Smiley Happy

For completeness, you could set the comment XML attribute to the shortcut object's Description property.

Thanks! And good that you mentioned "not officially supported" statement.

I have the comment/description included on my ToDo list, thanks.

Thank for the script!

We are going to move from iVanti (the application that shall not named Smiley Happy) to VMware.

Version history
Revision #:
1 of 1
Last update:
‎05-11-2020 02:03 AM
Updated by: