Difference between revisions of "Enabling Remote Desktop Connections"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
Line 3: Line 3:
 
You can enable them with a simple registry edit.
 
You can enable them with a simple registry edit.
  
First, the XML for WPKG will look like this:
+
The XML for WPKG will look like this:
  
<package
+
<code>
    id="enable-ts"
+
<package
    name="enables Terminal Server"
+
    id="remotedesktop"
    revision="1"
+
    name="Remote Desktop"
    priority="0"
+
    revision="1"
    execute="once">
+
    reboot="false"
+
    priority="0">
  <install cmd='regedit /s "%SOFTWARE%\ts\enable-ts.reg"' />
+
  <upgrade cmd='regedit /s "%SOFTWARE%\ts\enable-ts.reg"' />
+
  <remove cmd='regedit /s "%SOFTWARE%\ts\disable-ts.reg"' />
+
+
</package>
+
  
 +
<check type="registry" condition="equals" path="HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\fDenyTSConnections" value="0" />
  
And here are the registry files for enabling and disabling Remote Desktop Connections:
 
  
<code>enable-ts.reg</code>:
+
<install cmd='reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f"' />
  REGEDIT4
+
  <upgrade cmd='reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f"' />
+
  <remove cmd='reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f"' />
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
+
  "fDenyTSConnections"=dword:00000000
+
  
<code>disable-ts.reg</code>:
+
</package>
REGEDIT4
+
</code>
+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
+
"fDenyTSConnections"=dword:00000001
+
  
 
This will allow you to log on as Administrator (either domain or local) using Terminal Sessions.
 
This will allow you to log on as Administrator (either domain or local) using Terminal Sessions.

Revision as of 15:57, 2 March 2007

In XP, you have Remote Desktop Connection / Terminal Sessions, disabled by default.

You can enable them with a simple registry edit.

The XML for WPKG will look like this:

<package

   id="remotedesktop"
   name="Remote Desktop"
   revision="1"
   reboot="false"
   priority="0">
<check type="registry" condition="equals" path="HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\fDenyTSConnections" value="0" />


<install cmd='reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f"' />
<upgrade cmd='reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f"' />
<remove cmd='reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f"' />

</package>

This will allow you to log on as Administrator (either domain or local) using Terminal Sessions.


Question: how to enable Terminal Sessions for other, non-Administrator users?