SAM 远程桌面脚本配置远程的桌面设置。 SAM 启动远程桌面脚本,以便自动将用户登录到 Windows Agenless 端点。 您可以自定义 SAM 远程桌面脚本,以便控制应用程序参数。
SAM 远程桌面使用以下命令:
SetRDPOption(BSTR bsName, BSTR bsType, BSTR bsValue
指定要修改的参数的名称
指定参数类型
定义参数值
示例:配置远程桌面应用程序设置
以下示例显示用于将远程桌面窗口设置为全屏的命令,并将本地驱动器重定向到远程端点驱动器:
Dim hwnd Set test = CreateObject("ACLauncher.ACWebLauncher") test.SetRDPOption "screen mode id","i","2" test.SetRDPOption "redirectdrives","i","1" hwnd = test.LauncheRDP("computer1", "computer1\administrator", "xxxxxx")
下表包含您可以用来修改远程桌面脚本的可能参数和值:
参数 |
类型 |
值 |
选项 |
---|---|---|---|
alternate shell |
字符串 |
c:\winnt\system32\notepad.exe |
定义要在终端服务会话内使用的 shell。 使用此参数设置其他 shell,如 progman.exe。 您也可以使用它来设置用户用于登录到终端服务器的应用程序。 |
audiomode |
整数 |
2 |
0 - 将音频带到此计算机 |
autoreconnection enabled |
整数 |
1 |
打开文件时,自动连接。 |
connect to console |
整数 |
1 |
0 - 连接到虚拟会话 |
desktopheight |
整数 |
768 |
定义远程桌面的高度(像素) |
desktopwidth |
整数 |
|
定义远程桌面的宽度(像素) |
disable full window drag |
整数 |
1 |
拖动时禁用窗口显示 |
disable menu anims |
整数 |
1 |
禁用菜单动画 |
disable themes |
整数 |
1 |
在会话中禁用主题 |
disable wallpaper |
整数 |
1 |
禁用墙纸显示 |
displayconnectionbar |
整数 |
1 |
在全屏会话中显示连接条 |
keyboardhook |
整数 |
2 |
应用标准的 Windows 键组合 |
maximizeshell |
整数 |
0 |
指定以最大化用于该会话的任何其他 shell |
redirectcomports |
整数 |
1 |
指定以在会话中重定向客户端 COM 端口 |
redirectdrives |
整数 |
1 |
指定以在会话中重定向客户端驱动器 |
redirectprinters |
整数 |
1 |
指定以在会话中重定向客户端打印机 |
redirectsmartcards |
整数 |
1 |
指定以在会话中重定向客户端智能卡 |
screen mode id |
整数 |
1 |
定义屏幕模式 1 - 窗口式 |
server port |
整数 |
3389 |
在“完整地址”参数中定义端口号 |
session bpp |
整数 |
16 |
指定每个会话的位深度 8, 16, 24. 8 位适用于 Windows 2000 终端服务器 |
shell working directory |
字符串 |
c:\program files\microsoft office |
如果指定,为其他 shell 定义工作目录 |
smart sizing |
整数 |
|
指定以在调整大小时缩放桌面的客户端窗口显示 |
winposstr |
字符串 |
0,1,0,249,808,876 |
指定“窗口模式”大小 - 最大化与调整大小。 |
版权所有 © 2013 CA。
保留所有权利。
|
|