Hi,
Is there a way to automaticly start the horizon client at computer start up in the background and login?
I want my RDSH published shortcuts to appear automaticly in the start menu without manually clicking the Horizon client the first time.
Hi Maarten_Caus,
You could drop a shortcut to the Horizon Client in the 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup' folder and modify the shortcut properties to run minimized.
To log in automatically, as long as its the same user who has logged in to Windows, set a default Connection URL and the 'Log in as current user' option using the vdm_client.admx Group Policy template.
Hope this helps.
Hi Kyran,
Thank you for the quick respone.
That was the first thing I tried but the Horizon client doens't start minimized.
I also tried some commandline options to start the Horizon client minimized but without any luck.
Does it work in your environment like you suggested?
Hi,
Also trying to reach the same thing here. Had no chance to make it happen to open the Horizon client in the background. Ended up creating a VB Script in order to open Horizon, minimize the window and close Horizon after few seconds. It's not perfect since the user will see the Horizon window for a short period of time but it's working fine as a login script.
Here is the code:
Dim WshShell, strCommand, objHC
set WshShell = CreateObject("wscript.Shell")
strCommand = "C:\Program Files (x86)\VMware\VMware Horizon View Client\vmware-view.exe"
Set objHC = WshShell.Exec(strCommand)
' Wait until Horizon is ready to be minimized
wscript.sleep 2500
' Open the system menu and minimize the window...
WshShell.SendKeys "%+ n"
' Wait few seconds to let Horizon refresh the application shortcuts list in Start Menu
wscript.sleep 5000
' Kill the Horizon process
WshShell.Run "taskkill /im vmware-view.exe", 0, True
'Clean up and exit
Set objHC = Nothing
Set WshShell = Nothing
WScript.Quit
Would still be interested in a way of doing it completely hidden in background.
make it easier ![]()
Dim WshShell, strCommand, objHC
set WshShell = CreateObject("wscript.Shell")
strCommand = "C:\Program Files (x86)\VMware\VMware Horizon View Client\vmware-view.exe"
Set objHC = WshShell.Exec(strCommand)
' Wait few seconds to let Horizon refresh the application shortcuts list in Start Menu
wscript.sleep 5000
' Logoff Horizon Agent
strCommand = "C:\Program Files (x86)\VMware\VMware Horizon View Client\vmware-view.exe -shutdown"
Set objHC = WshShell.Exec(strCommand)
'Clean up and exit
Set objHC = Nothing
Set WshShell = Nothing
WScript.Quit
