Installing Silently Horizon View Agent

Hello,

I have been trying to use Bigfix to deploy the Horizon View agent to some of my desktops. But, it keeps crashing when processing the user id and password. This is the command line per vmware tech support documentation.

VMware-Horizon-Agent-x86-y.y.y-xxxxxx.exe /s /v"/qn VDM_VC_MANAGED_AGENT=0 VDM_SERVER_NAME=vmcloud.lv.psu.edu VDM_SERVER_USERNAME= VDM_SERVER_PASSWORD= ADDLOCAL=Core,ThinPrint,USB"

Hello @lions1855

Can you share with us the exact command line you are using from your action script in your Fixlet?

wait __Download\VMware-Horizon-Agent-x86_64-7.11.0-15238678.exe /s /v “/qn VDM_VC_MANAGED_AGENT=0 VDM_SERVER_NAME=SERVERNAME VDM_SERVER_USERNAME=USERNAME VDM_SERVER_PASSWORD=PASSWORD ADDLOCAL=Core,PCoIP,USB”

this is the kb article.

Are there any special characters in the password that might be need to be escaped or modified?

There are upper and lower case.

This is the install syntax that we have used successfully.

wait __Download\VMware-Horizon-Client-x86_64-4.1.0-3977225.exe /s /v"/qn REBOOT=ReallySuppress INSTALLDIR=“path” ADDLOCAL=ALL DESKTOP_SHORTCUT=1 VDM_SERVER=servername /l*v logpath\file.log"

We are installing the horizon view agent. The syntax that you have is for the horizon view client.

This is the code that seems to be executing without no errors. However, it is not installing the agent.

folder delete "C:\Windows\Temp\Horizon"
folder create “c:\windows\temp\horizon”

Move __Download\VMware-Horizon-Agent-x86_64-7.11.0-15238678.exe "C:\Windows\Temp\Horizon\VMware-Horizon-Agent-x86_64-7.11.0-15238678.exe"
waithidden netsh.exe firewall set portopening TCP 4172 “PCoIP TCP” enable
waithidden netsh.exe firewall set portopening UDP 4172 “PCoIP UDP” enable
action uses wow64 redirection {not x64 of operating system}
delete __createfile

// CREATEFILE
createfile until END_OF_FILE

appendfile $agentpath="c:\windows\temp\horizon\VMware-Horizon-Agent-x86_64-7.11.0-15238678.exe"
appendfile $file=$agentpath.split(‘\’)[-1]
appendfile $viewConnServer=“server address"
appendfile $viewAdminUser=“USERNAME"
appendfile $viewAdminPassword=“PASSWORD"
appendfile $viewAddLocal=“Core,PCoIP,USB"
appendfile $script=‘”’+$agentpath+‘” /s /v”/qn VDM_VC_MANAGED_AGENT=0 VDM_SERVER_NAME=’+$viewConnServer+‘ VDM_SERVER_USERNAME=’+$viewAdminUser+‘ VDM_SERVER_PASSWORD=’+$viewAdminPassword+‘ ADDLOCAL=’+$viewAddLocal+‘”’

END_OF_FILE

delete powershell.ps1
move __createfile powershell.ps1

waithidden { pathname of file ((it as string) of value “Path” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell” of native registry) } -ExecutionPolicy Bypass -File powershell.ps1

restart 0

I know some of the netsh commands in particular don’t play nicely with 32-bit mode.

Try putting
action uses wow64 redirection false
In your actionscript before running any of the ‘wait’ commands.

1 Like

It looks like you have a space after your /v ?

Try:

wait __Download\VMware-Horizon-Agent-x86_64-7.11.0-15238678.exe /s /v"/qn VDM_VC_MANAGED_AGENT=0 VDM_SERVER_NAME=MyServer VDM_SERVER_USERNAME=MyUsername VDM_SERVER_PASSWORD=P@ssw0rd ADDLOCAL=Core,PCoIP,USB"

Thanks guys! it is resolved. The feature PCoIP is already part of the Core option. As soon as I remove the PCoIP option, everything worked.

1 Like

A post was split to a new topic: Installing VMWare Horizon client