VMware Horizon Community
Maarten_Caus
Enthusiast
Enthusiast

Horizon Client Auto start at Windows login in the background

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.

Reply
0 Kudos
4 Replies
KyranBrophy
Enthusiast
Enthusiast

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.

pastedImage_0.png

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.

Reply
0 Kudos
Maarten_Caus
Enthusiast
Enthusiast

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?

Reply
0 Kudos
aberto
Contributor
Contributor

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.

Reply
0 Kudos
Sn0r
Enthusiast
Enthusiast

make it easier Smiley Happy

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

Reply
0 Kudos