2010年6月15日 星期二

mstsc /admin



What happened to the console switch in RDP 6.1? - mstsc /console vs. mstsc /admin

http://4sysops.com/archives/what-happened-to-the-console-switch-in-rdp-61-mstsc-console-vs-mstsc-admin/


How to run Remote Desktop Console using command line
If you may wan to run Desktop Console from a batch file, for example RDC over VPN, you can use mstsc /v:servername /console command.

Mstsc

Creates connections to terminal servers or other remote computers, edits an existing Remote Desktop Connection (.rdp) configuration file, and migrates legacy connection files that were created with Client Connection Manager to new .rdp connection files.

Syntax

mstsc.exe
{ConnectionFile |
/v: 
ServerName Port ]} [ /console ] [ /f ] [ /w: Width /h: Height ]

mstsc.exe

/edit"

ConnectionFile

"
mstsc.exe

/migrate
Parameters

ConnectionFile
Specifies the name of an .rdp file for the connection.

/v:

ServerName
[
:

Port
]
Specifies the remote computer and, optionally, the port number to which you want to connect.

/console
Connects to the console session of the specified Windows Server 2003 family operating system.

/f
Starts Remote Desktop connection in full-screen mode.

/w:
Width

/h:

Height
Specifies the dimensions of the Remote Desktop screen.

/edit"

ConnectionFile

"
Opens the specified .rdp file for editing.
/migrate
Migrates legacy connection files that were created with Client Connection Manager to new .rdp connection files.
Remarks

  • You must be an administrator on the server to which you are connecting to create a remote console connection.


  • default.rdp is stored for each user as a hidden file in My Documents. User created .rdp files are stored by default in My Documents but can be moved anywhere.

Examples
To connect to the console session of a server, type:

mstsc /console

To open a file called filename.rdp for editing, type:

mstsc /edit filename.rdp
===
上次介紹過如何在 WinXP 上修改遠多桌面的連接埠,以避免預設的3389容易被攻擊「
更改遠端桌面連接埠 - Remote Desktop Port number
」。時至今日,作業系統從 WinXP 變更為 Window 7 該怎麼設定呢?

相信很多跟我一樣沒經歷(使用)VISTA 的人,第一次接觸 Win 7 時會覺得超難用的,很多基本設定都會找不到在哪?


> 開啟控制台(Control Panel)然後選 系統(System and Security),接著點選下圖中的(Allow Remote Access)


>這時他會開啟 電腦-內容(System Properties) 最右邊的遠端(Remote)頁籤。下圖的例子中是關閉遠端協助 (Remote Assistance) ,然後開啟遠端桌面(Remote Desktop)


> 基本上到這裡就ok了,不過我們還是要講一下怎麼在 Windows 7 中,更改遠端桌面的連接埠。


1.首先執行 regedit. exe

2.找到路徑「

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\
」,然後對 PortNumber 屬性做修改



>對 PortNumber 點滑鼠右鍵選 Modify


> 預設帶出為16進制(Hexadecimal),16進制不容易閱讀,就改以10進制(Decimal)來輸入你想要的連接埠的值


> 搞定收工,試著用 Mstsc.exe 遠端桌面程式連結看看吧!格式為「IP:port」


~ End

沒有留言:

張貼留言