{"id":129,"date":"2009-06-20T04:24:04","date_gmt":"2009-06-20T04:24:04","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2009\/06\/20\/how-to-run-remote-desktop-console-using-command-line\/"},"modified":"2017-12-26T01:14:48","modified_gmt":"2017-12-26T01:14:48","slug":"how-to-run-remote-desktop-console-using-command-line","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-run-remote-desktop-console-using-command-line\/","title":{"rendered":"How to run Remote Desktop Console by using command line?"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4006\" src=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/06\/desktop-console-using-comma.png\" alt=\"\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2009\/06\/desktop-console-using-comma.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2009\/06\/desktop-console-using-comma-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<table border=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td class=\"HEADING\"><strong>How to run Remote Desktop Console using command line<\/strong><\/td>\n<\/tr>\n<tr>\n<td class=\"HEADING_BODY\">If you may want to run Desktop Console from a batch file, for example RDC over VPN, you can use mstsc \/v:servername \/console command.<\/p>\n<p><strong>Mstsc<\/strong><\/p>\n<p>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.<\/p>\n<p><strong>Syntax<\/strong><\/p>\n<p>mstsc.exe {ConnectionFile | \/v:ServerName[:Port]} [\/console] [\/f] [\/w:Width \/h:Height]<br \/>\nmstsc.exe \/edit&#8221;ConnectionFile&#8221;<br \/>\nmstsc.exe \/migrate<br \/>\nParameters<\/p>\n<p><strong>ConnectionFile<\/strong><\/p>\n<p>Specifies the name of an .rdp file for the connection.<br \/>\n\/v:ServerName[:Port]<br \/>\nSpecifies the remote computer and, optionally, the port number to which you want to connect.<\/p>\n<p><strong>\/console<\/strong><br \/>\nConnects to the console session of the specified Windows Server 2003 family operating system.<\/p>\n<p><strong>\/f<\/strong><br \/>\nStarts Remote Desktop connection in full-screen mode.<\/p>\n<p><strong>\/w:Width \/h:Height<\/strong><br \/>\nSpecifies the dimensions of the Remote Desktop screen.<\/p>\n<p><strong>\/edit&#8221;ConnectionFile&#8221;<\/strong><br \/>\nOpens the specified .rdp file for editing.<\/p>\n<p><strong>\/migrate<\/strong><br \/>\nMigrates legacy connection files that were created with Client Connection Manager to new .rdp connection files.<\/p>\n<p><strong>Remarks<\/strong><br \/>\n* You must be an administrator on the server to which you are connecting to create a remote console connection.<br \/>\n* 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.<br \/>\nExamples<\/p>\n<p>To connect to the console session of a server, type:<br \/>\nmstsc \/console<\/p>\n<p>To open a file called filename.rdp for editing, type:<br \/>\nmstsc \/edit filename.rdp<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>How to run Remote Desktop Console using command line If you may want to run Desktop Console from a batch file, for example RDC over VPN, you can use mstsc&#8230; <\/p>\n","protected":false},"author":1,"featured_media":4006,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[49],"tags":[333,824,3025,3021,3020,1122,545,3026,1806,593,3028,383,3027,3022,1668,3023,3024,1593,1097,104,1452],"class_list":["post-129","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","tag-command","tag-command-line","tag-command-line-for-remote-desktop","tag-console","tag-desktop","tag-guide","tag-how","tag-how-to-run-remote-desktop-by-commands","tag-instruction","tag-process","tag-rdp","tag-remote","tag-remote-connection","tag-remote-desktop-console","tag-run","tag-run-command","tag-run-command-for-remote-desktop","tag-techniques","tag-tips","tag-tutorials","tag-ways"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":4007,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/129\/revisions\/4007"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/4006"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}