Home > Blogs > VMware ThinApp Blog


Simple THINREG.EXE Login Script

Lately, we’ve been asked on numerous occasions about the use of ThinReg within login script, and how login scripts can be cumbersome to maintain. Simply put, we’ve been asked, “Why do ThinApp/ThinReg login scripts need to be so complex?

Well…the simplest answer is, they don’t!!

As ThinApp has the ability to support Active Directory Security Groups (including nested security groups – or “tertiary groups” for our more linguistically adept folks), the THINREG.EXE utility has the ability to also honor those Active Directory Security Group settings and only register to the user, the apps which the user has permissions to run.

VMware’s own Aaron Miller made a wonderful short video on this feature within his own View lab environment which is a “Must See”!

Therefore, prerequisites are a simple SMB share containing built ThinApp packages which have A.D. Security Groups applied to them via the PermittedGroups value, and a simple THINREG.EXE command within a login script.

With that, I wanted to offer a couple of login scripts for examples (one VBS and one BAT/CMD) on how easy it is to add THINREG.EXE to your login script.

VBS Example:




AdminScriptEditor Script Conversion


'Simple THINREG Login Script
'=================================================
' Set Environment Variables
'=================================================
Set WSHShell = WScript.CreateObject("WScript.Shell")
'================================================= ' Register ThinApps '================================================= WSHShell.Exec("THINREG.EXE <UNC or Drive\path>\*.EXE> /Q")


BAT/CMD Example:




AdminScriptEditor Script Conversion


@ECHO OFF
REM Simple THINREG Login Script
THINREG.EXE <UNC or Drive\Path>\*.EXE> /Q


This entry was posted in Scripts, Tips and tagged , on by .
Dean Flaming

About Dean Flaming

Dean is currently an EUC Architect and member of the VMware End User Computing Enablement and Lighthouse Support teams, working to develop communications and IP around VMware End User Computing products and solutions as well as support many various Lighthouse accounts with their own EUC practices. Prior to this, from 2008 through 2012 Dean was one of VMware's End User Computing Specialists. Throughout his time at VMware, Dean has also written and published various articles, videos, and podcasts regarding VMware's EUC Solutions.