|
#1
|
|||
|
|||
|
How can i activate "desktop remote connection" from command line?
Thank'you |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
> How can i activate "desktop remote connection" from command line?
mstsc |
|
#5
|
|||
|
|||
|
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. > |
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
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 |
|
#8
|
|||
|
|||
|
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 > |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
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 |