根据网上搜索的信息稍微做了一些修改,配置如下。
1. 手工安装view client
2. 在c:\client\下创建一个包含以下内容的View.bat文件:
1
2
3
4
5
|
@
echo off
"C:\Program Files\VMware\VMware View\Client\bin\wswc.exe"
:view
shutdown -s -t 0
goto view
|
3. 在同一级目录中创建start.vbs
1
2
3
|
Set WshShell = CreateObject( "WScript.Shell" )
WshShell.Run Chr(
34 ) & "C:\client\view.bat" & Chr( 34 ), 0
Set WshShell = Nothing
|
3、编辑注册表,替换当前用户登录的shell.
1
2
3
|
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"Shell" = "wscript c:\\client\\start.vbs"
|
配置脚本下载:点击下载
|
转载于:https://blog.51cto.com/8670327/1368841