HOWTO: Create the CustomAppUserModeliDs.xml file to allow multiple shortcuts in the Start Menu

Version 11

    Info

    In older version of Microsoft Windows all shortcuts that were created in %APPDATA%\Microsoft\Windows\Start Menu\Programs were displayed in the users Start Menu. Since Microsoft Windows 8 the   Start Menu only displays 1 shortcut for each executable. For example, if you create 2 shortcuts like "iexplore.exe www.google.nl" and "iexplore.exe www.microsoft.com" only 1 will be displayed. This is default Windows behavior and is controlled by something called AppUserModeliD.

     

    In Ivanti Workspace Control a CustomAppUserModeliDs.xml file can be created to force a specific AppUserModeliD to a Managed Application. This article describes how to create such a file manually and by using a script.

     

    Solution

    The CustomAppUserModeliDs.xml is a file which forces Ivanti Workspace Control to set a specific AppUserModeliD to a Managed application.

     

    This can be needed in the case when multiple Ivanti Workspace Control managed shortcuts of the same executable are needed or when a specific AppUserModeliD needs to be assigned.
    There are two ways to create the CustomAppUserModeliDs.xml file, manually and by using a script.

     

     

    Requirements

    • RES Workspace Manager 2014 SR3 revision 5 (9.9.3.5) or later.
    • RES ONE Workspace 2015 GA revision 4 (9.10.0.4) or later

     

     

    Manual creation

    1. Launch Notepad.
    2. Copy all text in example 1 to the textfile.
    3. Change xxx in <id>xxx</id> to the Workspace Control Application ID which needs the specific AppUserModelID.
    4. Change xxx in <appusermodelid>WorkspaceManager.xxx</appusermodelid>.
    5. Save the text file As CustomAppUserModeliDs.xml.
    6. In the Ivanti Workspace Control Console add the CustomAppUserModeliDs.xml to the root of the Custom Resources (Administration > Custom Resources > New).

     

         If multiple applications need to be added just duplicate the text from the <app> to the </app> entry  (Example 1).

     

    Example 1

    <applist>
        <app>
            <id>xxx</id>
            <appusermodelid>WorkspaceManager.xxx</appusermodelid>
        </app>
    </applist>
    

    Note:

    This ID can be found in the Ivanti Workspace Control Console at Composition > Applications > Application List > ID column (Screenshot 1)

     


    Screenshot 1

     

     


    Example 2

    <applist>
        <app>
            <id>140</id>
            <appusermodelid>WorkspaceManager.140</appusermodelid>
        </app>
        <app>
            <id>141</id>
            <appusermodelid>WorkspaceManager.141</appusermodelid>
        </app>
        <app>
            <id>142</id>
            <appusermodelid>WorkspaceManager.142</appusermodelid>
        </app>
    </applist>
    

     


    Creation by script

    1. Download the caumidScript.zip file: "https://community.ivanti.com/downloads/RES/Utilities/caumidScript.zip".
    2. Extract the contents to a folder (C:\TEMP for example).
    3. Launch a cmd.exe and navigate to the folder you copied the script to.
    4. Enter the command caumidscript.vbs create 140 141 142   for example to create the file for the applications with ID's 140 141 and 142.
    5. The CustomAppUserModeliDs.xml file will be created in the same folder as the caumidScript.vbs is placed.
    6. In the Ivanti Workspace Control Console add the CustomAppUserModeliDs.xml to the root of the Custom Resources (Administration > Custom Resources > New).



    Note:

         In the caumidScript.zip file a README.txt file is added which explains the different command line parameters.