MED-V: Troubleshooting Application Publishing in V2.

MED-V builds on top of the RAIL (Remote Applications Installed locally) model that is also in Virtual PC for Windows 7 and Windows XP Mode for Windows 7.

Unlike XP Mode or Virtual PC (which put the applications in a specific Start menu Folder) MED-V V2 will scan the All Users Start Menu in the guest operating system to determine what should be published and where it will place it (in its equivalent location) in the Host’s Start Menu. The basic process of application publishing will basically be:

1. Application installed before MED-V Image is deployed must create a shortcut in the All User’s Start Menu folder of the guest. Applications installed on a MED-V image after it is deployed must also create a shortcut in the start menu to also be discovered.

2. MED-V will continually monitor any changes to shortcuts in the start menu of the deployed MED-V image.

3. MED-V will publish changes in the shortcuts to the start menu of the host workstation as they are discovered.

The MED-V Client is responsible for monitoring the folder in the host where Virtual PC publishes its shortcuts for additions or deletions. When an application shortcut is added to this monitored folder, the shortcut watcher will copy the published shortcut to the same location in the host Start menu as it occupies in the VM’s Start menu. Likewise, when an application shortcut is deleted from the monitored folder, the shortcut watcher will delete the published shortcut from its corresponding location in the host Start menu.

When application publishing in Virtual PC has been enabled, the Remote Desktop Services WMI Provider in conjunction with the Win32_TSPublishedApplication class is used to add the application information to the Virtual PC’s registry. The published application is given a unique published application identifier (PAI) that is used to reference it from both the host and the VM. The PAI value is stored as command line parameter in the shortcut file in the host.

If for some reason, either an application that was installed prior to deployment does not appear where expected or it was added post-deployment and it does not get published. In the event that application shortcuts that are copied into the VM Start menu are not being published to the host Start menu, the following items should be checked:

Ensure that the Integration Components are installed on the VPC

Ensure that Auto Publish is enabled on the VPC

Verify that the Virtual PC RemoteApp patch update is installed in the VM.

Run the MED-V Host toolkit using the following command:

MEDVHOST /toolkit

Click “View Published Applications

You can also leverage the following VBScript to query the applications

Ensure an entry exists for the application under the AppAllowList and TSAppAllowList registry keys.

Ensure the executable for the application is not listed under the HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtual Machine\VPCVAppExcludeList.

Copy an application shortcut into the VPC All Users folder and check to see if the application was published to the host by looking in the VPC7 Host Publication folder. If it was not then check the following items:

Copy an application shortcut into the VM Current User folder and check to see if the application was published by checking the registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TsAppAllowList\Applications. If no key was created for that application, then an error is occurring with the MED-V Host Agent.

Copy a VPC application shortcut to VPC Host Publication folder. This shortcut target must be formatted properly with the VMSAL command line parameters. Check to see if the shortcut was copied to the “%APPDATA%\Microsoft\Windows NT\CurrentVersion\Start Menu\Programs” folder.

If the application shows up with a PAI in the Guest OS under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Current Version\Virtual machine\AppAllowList\<PAI>. Check for a value called IgnoreForPublishing and remove it if it is set to 1.

Does the application start from a mapped drive? If so, change it to use a UNC path instead in the shortcut?

The Windows Event Log should also be checked to validate that no errors have occurred during the publication process.