IT Projects

A place for sharing, posting, documenting and implementing IT projects

Archive for the ‘Windows Server’ Category

How to move DHCP database from one server to another server

Posted by Thary on October 29, 2009

You use netsh dhcp server command to move DHCP database from one server to another server – for example moving DHCP database from Windows Server 2003 to Windows Server 2008.

Please note that you must install DHCP server service on a target server before moving the database.

On a source DHCP server (Windows Server 2003):

  1. Open a command prompt
  2. Type netsh dhcp server export drive:\dhcp.txt all
  3. Copy the file to a network share folder a thumb drive.

On a target DHCP server (Windows Server 2008):

  1. Open a command prompt
  2. Type netsh dhcp server import drive:\dhcp.txt all
  3. Activate the scope if necessary.

That’s it!

Book

Posted in Windows Server | Tagged: | Leave a Comment »

How to change the default TCP port for Remote Desktop connection

Posted by Thary on October 29, 2009

Remote Desktop Protocol (RDP) uses a default TCP port 3389. When you enable a remote desktop connection on your computer, you turn on this port automatically and allow a remote connection to your computer. Everyone in Administrators and Remote Desktop Users groups can connect to your computer remotely.

You can change the default port for Remote Desktop by editing the registry entry. Configuring and setting a new port for Remote Desktop provides a secure remote connection to your computer because only you and people with permission know the new port assignment.

Using Registry editor to change port for Remote Desktop

  1. Open Registry editor by typing Regedit in the Run command line.
  2. Expand these registry entries and subentries:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
  3. Select RDP-Tcp and in the right window, scroll down and double-click PortNumber.

    clip_image002

  4. Choose Decimal, double-click to select 3389 in the Value Data: text box, enter a new port number, for example 3391, and then click OK.

    clip_image004 

You may need to restart the computer to effect the new change.

How to enable Remote Desktop connection

  1. Open Control Panel and double-click System to open System Properties.
  2. Choose Remote tab on the System Properties sheet.
  3. In Remote Desktop section, check “Allow users to remotely connect to this computer” check box. 
  4. Click “Select Remote Users” button to add users that you allow to remotely connect to your computer, and click OK.

How to configure Windows firewall to allow Remote Desktop

When Remote Desktop is enabled, the default port 3389 is added to the exception list of the Windows firewall. Since the new port is configured, a new exception must be created.

  1. Open Control Panel and double-click Windows Firewall.
  2. Choose Exceptions tab on the Windows Firewall dialog box.
  3. Clear “Remote Desktop” check box as this is a default port for Remote Desktop.
  4. Click “Add Port…” button and in Name: field, enter “Remote Desktop Connection” and in Port number: field; enter the new port that is previously configured in the registry editor, for example 3391. Make sure TCP is selected.
    clip_image008
  5. Click OK.

In the exception list of the Windows Firewall, you should have “Remote Desktop Connection” checked.

When you remotely connect to your computer with an assigned port, you must enter the new port along with the IP address or computer name. For example, if your computer IP is 192.168.12.3, and you configured a new port 3391 for your Remote Desktop; then you must enter 192.168.2.3:3391 in the Remote Desktop connection client.

image

Posted in Windows Server | Tagged: , | Leave a Comment »

You receive an "Error 721" error message when you try to establish a VPN connection through your Windows Server based remote access server

Posted by Thary on October 29, 2009

If you try to establish a virtual private network (VPN) connection to a corporate network by using a Point-to-Point Tunneling Protocol (PPTP) client, the connection to the Microsoft Windows Server-based remote access server may not succeed.

You may receive the following error message:

  • Error 721: The remote computer is not responding.

Cause:

This issue may occur if the network firewall does not permit Generic Routing Encapsulation (GRE) protocol traffic. GRE is IP Protocol 47. PPTP uses GRE for tunneled data.

Resolution:

To resolve this issue, configure the network firewall to permit GRE protocol 47. Also, make sure that the network firewall permits TCP traffic on port 1723. Both of these conditions must be met to establish VPN connectivity by using PPTP.

Reference:

Posted in Windows Server | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.