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.

.\Convert-LNK2DEMXML.ps1

-- or --

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

1.png

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

2.png

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

3.png

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

4.png

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

Comments

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: