Difference between revisions of "Enabling Remote Desktop Connections"
From WPKG | Open Source Software Deployment and Distribution
Line 24: | Line 24: | ||
A more complex scenario exists if the Terminal Service itself had been disabled; in which case the following is a more suitable. | A more complex scenario exists if the Terminal Service itself had been disabled; in which case the following is a more suitable. | ||
+ | <source lang="xml"> | ||
<package id="rdp" name="Remote Desktop" revision="3" reboot="true" priority="5"> | <package id="rdp" name="Remote Desktop" revision="3" reboot="true" priority="5"> | ||
<check type="logical" condition="or"> | <check type="logical" condition="or"> | ||
Line 36: | Line 37: | ||
<remove cmd='sc config termservice start= disabled' /> | <remove cmd='sc config termservice start= disabled' /> | ||
</package> | </package> | ||
+ | </source> | ||
---- | ---- |
Revision as of 21:57, 4 April 2008
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.
A more complex scenario exists if the Terminal Service itself had been disabled; in which case the following is a more suitable.
<package id="rdp" name="Remote Desktop" revision="3" reboot="true" priority="5">
<check type="logical" condition="or">
<check type="registry" condition="equals" path="HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\fDenyTSConnections" value="0" />
<check type="registry" condition="equals" path="HKLM\SYSTEM\CurrentControlSet\Services\TermService\Start" value="2" />
</check>
<install cmd='reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f' />
<install cmd='sc config termservice start= auto' />
<upgrade cmd='reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f' />
<upgrade cmd='sc config termservice start= auto' />
<remove cmd='reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f' />
<remove cmd='sc config termservice start= disabled' />
</package>
Question: how to enable Terminal Sessions for other, non-Administrator users?