PC Review


Reply
Thread Tools Rate Thread

Activate remote desktop connection from command line

 
 
Massimo Manarini
Guest
Posts: n/a
 
      7th Dec 2005
How can i activate "desktop remote connection" from command line?

Thank'you
 
Reply With Quote
 
 
 
 
Peter
Guest
Posts: n/a
 
      7th Dec 2005
> How can i activate "desktop remote connection" from command line?

mstsc


 
Reply With Quote
 
Carey Frisch [MVP]
Guest
Posts: n/a
 
      7th Dec 2005
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
 
Massimo Manarini
Guest
Posts: n/a
 
      7th Dec 2005
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
 
=?Utf-8?B?VGVjaGRhbmdv?=
Guest
Posts: n/a
 
      7th Dec 2005
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
 
Ramesh, MS-MVP
Guest
Posts: n/a
 
      8th Dec 2005
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" <(E-Mail Removed)> wrote in message
news:OmQaUf1%(E-Mail Removed)...
> 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
 
Bill Sanderson
Guest
Posts: n/a
 
      9th Dec 2005
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\Terminal 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\Terminal 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" <(E-Mail Removed)> wrote in message
news:Oy1bBQ1%(E-Mail Removed)...
> How can i activate "desktop remote connection" from command line?
>
> Thank'you



 
Reply With Quote
 
Kirt Burgtorf
Guest
Posts: n/a
 
      11th Dec 2005
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" <(E-Mail Removed)> wrote in message
news:Oy1bBQ1%(E-Mail Removed)...
> How can i activate "desktop remote connection" from command line?
>
> Thank'you
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Desktop Command Line Jack Microsoft Windows 2000 Terminal Server Applications 6 18th Jan 2011 04:54 AM
Remote Desktop accross WAN command line? kingull Windows XP Work Remotely 4 12th Feb 2008 01:25 PM
Activate remote desktop connection from command line Massimo Manarini Windows XP General 7 11th Dec 2005 05:44 PM
Remote Desktop Command Line - Username/Password smithy1981 Windows XP Work Remotely 0 16th Sep 2005 04:18 PM
Re: Remote Desktop Command Line Access? Brian Steele Windows XP Work Remotely 0 7th Jul 2003 10:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:38 PM.