horizon view client


了增强用户体验,某些情况下用户不想通过先登录自己桌面然后开启horizon view client 来登录虚拟桌面,那么我们可以设置开机自动登录。
系统环境:Horizon view client 6+ xp/win7/win8操作系统
编写脚本:
start.vbs
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run Chr(34) & "C:startstart.bat" & Chr(34), 0
Set WshShell = Nothing


start.bat
@echo off
:loop
tasklist| find "vmware-remotemks.exe" || goto View
exit
:View
"C:Program Files (x86)VMwareVMware Horizon View Clientvmware-view.exe" -serverURL https://connserver.mynetgear.local -userName %username% user1 -password %password% Cx25408887 -domainName mynetgear -desktopName win7-d-desktop
goto loop
设置开机启动
1)Windows7 操作系统
在c盘下创建start文件夹,复制start.bat脚本复制到该目录下,将hideRunFrame.vbs脚本复制到C:UsersxiaokangAppDataRoamingMicrosoftWindowsStartMenuProgramsStartup
备注:一定要在hideRunFrame.vbs中正确指定start.bat路径