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.
'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")
@ECHO OFF REM Simple THINREG Login Script THINREG.EXE <UNC or Drive\Path>\*.EXE> /Q