Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Аватара для MONaH Rasta

Новый участник


Сообщения: 11
Благодарности: 1

Профиль | Сайт | Отправить PM | Цитировать


gf100, я нашёл, как состряпать bat'ник

Using the Remote Desktop Client from the Command Prompt

Цитата http://www.windowsnetworking.com/kbase/WindowsTips/Windows2003/AdminTips/TerminalServersandThinClients/UsingRemoteDesktopClientCommandPrompt.html:
The Microsoft remote desktop client can be found in %systemroot%/system32/mstsc.exe. Running this program with no extensions will bring up the remote desktop connection program. However, mstsc.exe has a full set of switches that can be used to accomplish things from the command prompt.
Код: Выделить весь код
mstsc.exe {ConnectionFile | /v:ServerName[:Port]} [/console] [/f] [/w:Width/h:Height]
/v - specifies the remote computer and port (optional) you wish to connect to
/console – connects to the console of a Windows Server 2003 based system
/f – starts the remote desktop connection in full screen mode
/w & /h – specifies the width and height of the remote desktop connection

This can be very useful in creating batch files to use as quick routes to machines with a particular group of settings. For instance, mstsc.exe can be called from a batch file enforced by group policy to run at startup for machines that need to connect directly to a terminal server for use.


Вопрос лишь как закрыть это окно, после подключения RDP сессии пользователя "Б", на стороне пользоветя "А". Как если бы пользовель "А" подключился бы по RDP и закрыл окно mstsc.exe на "красный крестик". Сессия при этом остаётся активной, что мне и нужно.

-------
Jah LOVE, Jah LOVE, protect us


Отправлено: 15:57, 09-12-2010 | #181