Activate remote desktop connection from command line


Go Back   Computer Help Articles > Windows XP Work Remotely
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2006, 07:14 AM
Massimo Manarini
 
Posts: n/a
Default Activate remote desktop connection from command line

How can i activate "desktop remote connection" from command line?

Thank'you
Reply With Quote
  #2  
Old 01-05-2006, 07:14 AM
Carey Frisch [MVP]
 
Posts: n/a
Default Re: Activate remote desktop connection from command line

Mstsc
http://www.microsoft.com/resources/d...cmd_mstsc.mspx

Alternative solution:

1. Right-click on your Desktop and select NEW > SHORTCUT
2. Type in: MSTSC.EXE , and click Next.
3. Type in a name for the shortcut, such as "Remote Desktop Connection"
4. Click "Finish".
5. A shortcut to your Remote Desktop Connection program will appear on your desktop.

--
Carey Frisch
Microsoft MVP
Windows - Shell/User
Microsoft Community Newsgroups
news://msnews.microsoft.com/

-------------------------------------------------------------------------------------------

"Massimo Manarini" wrote:

| How can i activate "desktop remote connection" from command line?
|
| Thank'you
Reply With Quote
  #3  
Old 01-05-2006, 07:14 AM
Massimo Manarini
 
Posts: n/a
Default Re: Activate remote desktop connection from command line

Carey Frisch [MVP] wrote:
> Mstsc
> http://www.microsoft.com/resources/d...cmd_mstsc.mspx
>
> Alternative solution:
>
> 1. Right-click on your Desktop and select NEW > SHORTCUT
> 2. Type in: MSTSC.EXE , and click Next.
> 3. Type in a name for the shortcut, such as "Remote Desktop Connection"
> 4. Click "Finish".
> 5. A shortcut to your Remote Desktop Connection program will appear on your desktop.
>

Oh sorry i want activate the service about remote connection. Not client
connection.

Thank'you.
Reply With Quote
  #4  
Old 01-05-2006, 07:14 AM
Peter
 
Posts: n/a
Default Re: Activate remote desktop connection from command line

> How can i activate "desktop remote connection" from command line?

mstsc


Reply With Quote
  #5  
Old 01-05-2006, 07:14 AM
Techdango
 
Posts: n/a
Default Re: Activate remote desktop connection from command line

If you are trying to start a service via command line, it should be:

net start servicename
--
--------
Ryan


"Massimo Manarini" wrote:

> Carey Frisch [MVP] wrote:
> > Mstsc
> > http://www.microsoft.com/resources/d...cmd_mstsc.mspx
> >
> > Alternative solution:
> >
> > 1. Right-click on your Desktop and select NEW > SHORTCUT
> > 2. Type in: MSTSC.EXE , and click Next.
> > 3. Type in a name for the shortcut, such as "Remote Desktop Connection"
> > 4. Click "Finish".
> > 5. A shortcut to your Remote Desktop Connection program will appear on your desktop.
> >

> Oh sorry i want activate the service about remote connection. Not client
> connection.
>
> Thank'you.
>

Reply With Quote
  #6  
Old 01-05-2006, 07:14 AM
Ramesh, MS-MVP
 
Posts: n/a
Default Re: Activate remote desktop connection from command line

Microsoft Windows XP - SC:
http://www.microsoft.com/resources/d.../en-us/sc.mspx

How can I stop and start services from the command line?:
http://www.windowsitpro.com/Article/...157/15157.html


--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com


"Massimo Manarini" <info@massimomanarini.it> wrote in message
news:OmQaUf1%23FHA.740@TK2MSFTNGP11.phx.gbl...
> Carey Frisch [MVP] wrote:
>> Mstsc
>> http://www.microsoft.com/resources/d...cmd_mstsc.mspx
>>
>> Alternative solution:
>>
>> 1. Right-click on your Desktop and select NEW > SHORTCUT
>> 2. Type in: MSTSC.EXE , and click Next.
>> 3. Type in a name for the shortcut, such as "Remote Desktop Connection"
>> 4. Click "Finish".
>> 5. A shortcut to your Remote Desktop Connection program will appear on
>> your desktop.
>>

> Oh sorry i want activate the service about remote connection. Not client
> connection.
>
> Thank'you.


Reply With Quote
  #7  
Old 01-05-2006, 07:14 AM
Bill Sanderson
 
Posts: n/a
Default Re: Activate remote desktop connection from command line

I don't think anyone here has given the right answer yet.

It is possible to do this, I believe, but I think you must apply group
policy.

I think it you need to turn the feature on and reboot--I don't think you can
start the necessary services without a reboot.

I think the info at this link:

http://www.microsoft.com/technet/pro...4b79cc17a.mspx

is probably accurate for Windows XP. I'm not sure whether this setting is
available without the Windows Server 2003 templates being available however.

Here's a real blast from the past--from Alex Angelopoulos in September 2002,
as published in RemoteNetworking (digest version) by Jeffery Randow:

--------------------------------
What you are after is under the following key in the local registry:

"HKLM\SYSTEM\CurrentControlSet\Control\Termina l Server\"

The value of interest is a DWORD named:
"fDenyTSConnections"
Setting this flag to FALSE (0) should handle it for you.

Here's the problem: I cannot confirm that doing this programmatically
enables/disables RD. It MAY need a reboot to take effect after the
state change. Doing the registry edit in the GUI makes the chnage
instantly; doing it from script makes the change in the registry, but
the service does not start listening right away, so a "change and run"
script would require remotely reinitializing this somehow - probably
telling the service to re-read its settings, which I haven't looked into
yet.

Here's a VBScript function that does the state change, then returns a
result of "true if it succeeds and "false" if it doesn't. The reboot
test needs to be done... :-)


Function SetRdState(desiredState)
' Set to true to enable RD on XP Pro
' False to disable
' returns true if call succeeds, false on error
Dim Sh, key_TS, keyValue
SetRdState = False
Set Sh = CreateObject("WScript.Shell")
Key_TS = "HKLM\SYSTEM\CurrentControlSet\Control\Termina l Server\"
keyValue = Clng(Abs(CInt(desiredState)))
WScript.Echo "Desired value is", keyValue
On Error Resume Next
Err.Clear
Sh.RegWrite Key_TS & "fDenyTSConnections", keyValue, "REG_DWORD"
If Err.Number = 0 Then SetRdState = True
Err.Clear
On Error Goto 0
End Function
------------------------------------------------------------
There's more discussion around this, including some indication by an admin
that he was able to make this work via a startup script on machines where he
had admin access--more googling may help.

--

"Massimo Manarini" <info@massimomanarini.it> wrote in message
news:Oy1bBQ1%23FHA.912@TK2MSFTNGP11.phx.gbl...
> How can i activate "desktop remote connection" from command line?
>
> Thank'you



Reply With Quote
  #8  
Old 01-05-2006, 07:14 AM
Kirt Burgtorf
 
Posts: n/a
Default Re: Activate remote desktop connection from command line

You can use the "START" command and startup the Remote Desktop as follows:

START %SystemRoot%\System32\mstsc.exe

There are various switches you may want to utilize for the START command.
To see them type START /? at the command prompt.

Kirt

"Massimo Manarini" <info@massimomanarini.it> wrote in message
news:Oy1bBQ1%23FHA.912@TK2MSFTNGP11.phx.gbl...
> How can i activate "desktop remote connection" from command line?
>
> Thank'you
>



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
remote desktop web connection OR knowing public IP Brad Sayers Windows XP Work Remotely 5 01-05-2006 07:15 AM
Difference Between Remote Desktop Connection & Remote Assistance? Marks70 Windows XP Work Remotely 1 01-05-2006 07:14 AM
Remote Desktop doesn't work properly (network issue) christophesav Windows XP Network Web 0 01-05-2006 04:06 AM
Dial up connection & Remote Desktop JoesGirl Windows XP Network Web 0 01-05-2006 04:03 AM
cannot log on to windows in remote desktop connection (rdc) 5string Windows XP Help and Support 5 01-05-2006 02:42 AM


All times are GMT. The time now is 09:04 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.

Activate remote desktop connection from command line