Windows Server 2003(简称Windows
2003)的远程桌面功能为网管维护系统提供了方便。通常情况下,需要在Windows
2003服务器上才能开启远程桌面功能,这种方法相当麻烦。其实你也可以使用远程修改注册表的方法,在客户端远程开启Windows
2003服务器的远程桌面。
第一步:远程修改Windows 2003注册表
在客户机系统中,点击“开始→运行”,在“运行”对话框中输入“regedit”命令,进入注册表编辑器。接着在主菜单栏中点击“文件→连接网络注册表”,弹出“选择计算机”对话框,在“输入要选
择的对象名称”栏中填入要开启远程桌面功能的Windows
2003服务器的机器名(如SERVER1)最后点击“确定”按钮,打开Windows 2003服务器注册表。
在注册表编辑器左栏中依次展开“server1\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal
Server”项目,然后在右栏中找到“fDenyTSConnections”键(如图),双击打开后将该键值修改为“0”,点击“确定”按钮,最后关闭注册表编辑器。
第二步:远程重启Windows 2003服务器
我们虽然通过远程修改注册表开启了Windows 2003远程桌面,但这时修改还没有生效,需要重新启动Windows
2003服务器。
在客户机中,点击“开始→运行”,在“运行”对话框中输入“CMD”命令,进入命令提示符窗口。键入“shutdown -m
\\SERVER1 r”命令,重新启动Windows 2003服务器(SERVER1为Windows
2003服务器的机器名)。
完成了以上两个步骤的设置,就开启了Windows
2003服务器的远程桌面,网络管理员就可以在客户端使用“远程桌面连接”维护Windows 2003服务器了。
提示:在客户端使用的域用户账号具有远程修改注册表和远程重启Windows 2003服务器的权限,一般域用户无此权限。
注意这个端口:
如果用以下两个文件改动过端口的话。一定要一致!
**************************************************
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal
Server\Wds\rdpwd\Tds\tcp]
"InteractiveDelay"=dword:0000000a
"OutBufCount"=dword:00000006
"OutBufDelay"=dword:00000064
"OutBufLength"=dword:00000212
"PdClass"=dword:00000002
"PdDLL"="tdtcp"
"PdFlag"=dword:0000004e
"PdName"="tcp"
"PortNumber"=dword:0000033d
"ServiceName"="tcpip"
**************************************************
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal
Server\WinStations\RDP-Tcp]
"CfgDll"="RDPCFGEX.DLL"
"fEnableWinStation"=dword:00000001
"MaxInstanceCount"=dword:ffffffff
"PdName"="tcp"
"PdClass"=dword:00000002
"PdDLL"="tdtcp"
"PdFlag"=dword:0000004e
"OutBufLength"=dword:00000212
"OutBufCount"=dword:00000006
"OutBufDelay"=dword:00000064
"InteractiveDelay"=dword:00000032
"PortNumber"=dword:0000033d
"KeepAliveTimeout"=dword:00000000
"LanAdapter"=dword:00000000
"WdName"="Microsoft RDP 5.2"
"WdDLL"="rdpwd"
"WsxDLL"="rdpwsx"
"WdFlag"=dword:00000036
"InputBufferLength"=dword:00000800
"CdClass"=dword:00000000
"CdName"=""
"CdDLL"=""
"CdFlag"=dword:00000000
"Comment"=""
"fInheritAutoLogon"=dword:00000001
"fInheritResetBroken"=dword:00000001
"fInheritReconnectSame"=dword:00000001
"fInheritInitialProgram"=dword:00000001
"fInheritCallback"=dword:00000000
"fInheritCallbackNumber"=dword:00000001
"fInheritShadow"=dword:00000001
"fInheritMaxSessionTime"=dword:00000001
"fInheritMaxDisconnectionTime"=dword:00000001
"fInheritMaxIdleTime"=dword:00000001
"fInheritAutoClient"=dword:00000001
"fInheritSecurity"=dword:00000000
"fInheritColorDepth"=dword:00000000
"fPromptForPassword"=dword:00000000
"fResetBroken"=dword:00000000
"fReconnectSame"=dword:00000000
"fLogonDisabled"=dword:00000000
"fAutoClientDrives"=dword:00000001
"fAutoClientLpts"=dword:00000001
"fForceClientLptDef"=dword:00000001
"fDisableEncryption"=dword:00000001
"fHomeDirectoryMapRoot"=dword:00000000
"fUseDefaultGina"=dword:00000000
"fDisableCpm"=dword:00000000
"fDisableCdm"=dword:00000000
"fDisableCcm"=dword:00000000
"fDisableLPT"=dword:00000000
"fDisableClip"=dword:00000000
"fDisableExe"=dword:00000000
"fDisableCam"=dword:00000001
"Username"=""
"Domain"=""
"Password"=""
"WorkDirectory"=""
"InitialProgram"=""
"CallbackNumber"=""
"Callback"=dword:00000000
"Shadow"=dword:00000001
"MaxConnectionTime"=dword:00000000
"MaxDisconnectionTime"=dword:00000000
"MaxIdleTime"=dword:00000000
"KeyboardLayout"=dword:00000000
"MinEncryptionLevel"=dword:00000002
"NWLogonServer"=""
"WFProfilePath"=""
"WdPrefix"="RDP"
"TraceEnable"=dword:00000000
"TraceDebugger"=dword:00000000
"TraceClass"=dword:00000000
"DrawGdiplusSupportLevel"=dword:00000001
"ColorDepth"=dword:00000003
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal
Server\WinStations\RDP-Tcp\UserOverride]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal
Server\WinStations\RDP-Tcp\UserOverride\Control Panel]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal
Server\WinStations\RDP-Tcp\UserOverride\Control
Panel\Desktop]
"Wallpaper"=""