Difference between revisions of "Enabling Remote Desktop Connections"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
Line 5: Line 5:
 
The XML for WPKG will look like this:
 
The XML for WPKG will look like this:
  
<code>
+
<package
<package
+
    id="remotedesktop"
    id="remotedesktop"
+
    name="Remote Desktop"
    name="Remote Desktop"
+
    revision="1"
    revision="1"
+
    reboot="false"
    reboot="false"
+
    priority="0">
    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>
  
<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>
 
</code>
 
  
 
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 16:07, 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?