PDA

查看完整版本 : Terminal Service: Connect and/or Shadow to a Console Session...


Tony
2007-09-05, 02:28 PM
crosspost from http://blogs.msdn.com/rextang (http://blogs.msdn.com/rextang)
Seems some of my friends still didn't know how to use Microsoft Terminal Service Client (http://technet2.microsoft.com/windowsserver/en/technologies/featured/termserv/default.mspx) to connect to the console session of a windows pc (server or client OS) so here is a memo for it also during the search I found the other interesting thing that can let Terminal Service to function like a VNC server (2 users share the same session, called "shadow session" here).
By reading this KB (http://support.microsoft.com/kb/278845), to connect to the console session, just using the "-console" parameter on command line:
mstsc -v:servername -console
sometimes it's not that convenient to open a cmd window and type the command, my way is to duplicate the Remote Desktop Connection shortcut and on the target command input to plus the "-console" argument.
15329
also there is a way to share the same session by using the shadow ability of terminal service connection. document here for further reference. (for full setup guide refer to the KB pointed above)
1.Open the Group Policy snap-in (Gpedit.msc).

2.In the left pane, under the Computer Configuration branch, expand the Administrative Templates branch.
3.Expand the Windows Components branch.
4.Click the Terminal Services folder.
5.In the right pane, double-click Sets rules for remote control of Terminal Services user sessions.
6.On the Setting tab, click Enabled.
7.In the Options box, click Full Control with users' permission, and then click OK. 8. (added!) open a cmd window and use command "gpupdate /force (http://technet2.microsoft.com/windowsserver/en/library/6880fef3-76b7-4eb3-b993-fa00799615851033.mspx?mfr=true)" to force a group policy update of the local machine.

by doing so to set up the permission of using shadow function.
now, open a non-console terminal service session to the same machine and using a cmd window to type "shadow 0" to shadow to the console window. to exit the shadow on this session just press "Ctrl + * " (the * seems have to use the * key at the number pad, which is not there if using most of notebook keyboard. wondering if there are settings to change the key map.)
Now terminal service connection can perform console manipulation also be used like a VNC viewer. Check Terminal Service Team Blog (http://blogs.msdn.com/ts/) for more further information.

Erika
2007-09-06, 09:12 AM
.......英文贴~睇唔明

Tony
2007-09-06, 02:22 PM
好简单的,讲的是windows的终端服务如何做成好象QQ,radmin之类的遥控那样,可以看到操作画面。不过我只知大概内容,翻译就不够功力。