PowerShell: Per-user VMware Thinapp Registration Login Script

I’m not super familiar with ThinApping, but converted portions of this VMware login script at the request of a consultant.

I tried to automate the script a bit more than the one from VMware’s blog. Their script required that you put in the path to each EXE. This script will find all exes within a directory and register them. So if your Microsoft Office 2013 has Word 2013.exe and Excel 2013.exe, you only have to add Microsoft Office 2013 to the hash table. They also required that you dig into the registry to find the key, but this script finds the key automatically.

This script requires just a couple changes:

  1. Your ThinApps directory that holds all of your captures.
  2. The location of thinreg.exe
  3. The ThinApp name + the group that needs it installed (ex.
    $thinappgroup.Add(“Google Chrome 35”, “Web Team”))

Your registry key and directory structure should look something like this

registry directories

Chrissy is a Cloud and Datacenter Management & Data Platform MVP who has worked in IT for over 20 years. She is the creator of the popular SQL PowerShell module dbatools, holds a master's degree in Systems Engineering and is coauthor of Learn dbatools in a Month of Lunches. Chrissy is certified in SQL Server, Linux, SharePoint and network security. You can follow her on Twitter at @cl.

Posted in PowerShell, VMware

Leave a Reply

Your email address will not be published. Required fields are marked *