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 PowerShell MVP who has worked in IT for nearly 20 years, and currently serves as a Sr. Database Engineer in Belgium. Always an avid scripter, she attended the Monad session at Microsoft’s Professional Developers Conference in Los Angeles back in 2005 and has worked and played with PowerShell ever since. Chrissy is currently pursuing an MS in Systems Engineering at Regis University and helps maintain RealCajunRecipes.com in her spare time. She holds a number of certifications, including those relating to SQL Server, SuSE Linux, SharePoint and network security. She recently became co-lead of the SQL PASS PowerShell Virtual Chapter. 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 *

*