Howto: Change Windows Server 2003 RDP Port

By default, Windows Terminal Server and Remote Desktop Protocol (RDP) listen on TCP port 3389.

To change the port to your custom port, you may refer to below:-

1. Open the registry editor.
2. Navigate to,

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

3. Find the “PortNumber” and change to your needed port.

To be secure, reboot your server to apply new port.

WebSitePanel: IIS & FTP issue with Windows Server 2008 R2

If you are using Windows Server 2008 R2 and IIS 7.x plus FTP 7.x. You might facing a problem like can not add virtual directory for website or FTP in your WebSitePanel.

To overcome this problem,

1. Download Patches file from below,
MS IIS 7.x and FTP 7.x issues on Windows Server 2008 R2 SP1, here.
WebsitePanel Server 1.1.0 (Win2K8 R2 SP1 Fix).zip, here.
2. Backup the WebSitePanel Server’s bin folder.
3. Extract file from Step 1.
4. Replace the bin folder from step 3.

[via sourceforge]

The terminal server has exceeded the maximum number of allowed connections

For those who are using Windows Server Remote Desktop Connection, you might found this error during your operation.

Error: The terminal server has exceeded the maximum number of allowed connections

As Windows Server 2003 is using Terminal Services to control the Remote Desktop Connection, your maximum connection is 2 only. However, you got the third connection allowed as admin mode.

mstsc /v:x.x.x.x /admin

If you are using Windows Server 2008, use the admin console mode instead.

mstsc /v:x.x.x.x /console

Add multiple IPs to Windows Server

Imagine you have 20 IPs to add to your Windows Server and it is not an easy job to add them one by one.

To easily add them to the Windows server, you may use the following command format to add them.

netsh interface ip add address "Local Area Connection" 192.168.1.2 255.255.255.0

To add IP from 192.168.0.2 to 192.168.0.21, you may use the following command,

FOR /L %I IN (2,1,21) DO netsh interface ip add address "Local Area Connection" 192.168.0.%I 255.255.255.0

Microsoft Download Manager for large file

To download Microsoft RTM Build, it might take you for years 😛 , maybe several hours. This might be facing interruption during the download process.

Microsoft come with a solution which Microsoft Download Manager where it is simple enough to use.

1. Download Microsoft Download Manager from here.
2. Just select the New Download button and you may now able to paste the URL to the Microsoft Download Manager.
3. You may do the setting as image above.

Microsoft Download Manager works on Windows XP, Windows Vista, Windows 7 and Windows Server 2008. Windows Server 2003 has not been specified as a supported operating system on the Microsoft website and supported browsers currently mentioned include Internet Explorer and Mozilla Firefox.

RTR FrontPage Server Extension for IIS 7.5

The RTR Frontpage Server Extension for IIS 7.5 is available to download from Run-to-Run Software. This Frontpage server extension do support for Windows 7, Windows Server 2008 R2 and Windows Vista which using IIS 7.5.

To get it install, you may get it from IIS Community page,
RTR FrontPage Extension for IIS 7.5 – download

PHP Startup: Unable to Load Dynamic library ‘C:\PHP\ext\php_pdo_mysql.dll – The specified module could not be found

I was getting this error from one of the Windows Server with IIS, after looking for several source from the Internet, I found this solution.

The error is like detail below,

PHP Startup: Unable to Load Dynamic library ‘C:\PHP\ext\php_pdo_mysql.dll – The specified module could not be found.

Solution,
Copy the ext\libmysql.dll file from PHP installation folder to /Windows/System32 folder.

How to Import/Export a scheduled task

It is very important when you want to move your server from one web host to another one and you wish to move your scheduled task hosted from Windows Server.

In this case, I will take Windows Server 2008 as an example:

Export Scheduled Task,
1. Open Task Scheduler or run taskschd.exe.
2. Select the Task that you wish to export and hit on the Export link from the right bar.
3. Save the xml file.

Import Scheduled Task,
1. Open Task Scheduler or run taskschd.exe.
2. Click the Import link from the right bar and you will now see the Task created.

Windows:Run Task Scheduler with System user

Task scheduler or scheduled task is very important for a system administrator to manage the self design script to monitor from a server.

However, you might found out when you schedule a task from Windows Server 2003 with your used user such as batch file with .bat, you will get a command prompt popped up every time you are performing other task where this is annoyed.

To overcome this problem, I just found out that we can use System user to set the task without worry the above problem and it could solve when you have implement forced password change from a server.

I have come out the solution for Windows Server 2003 and Windows Server 2008.

Windows Server 2003,
With Windows Server 2003, you may look for the scheduled task from Control Panel, and look for Scheduled Task.

If you are creating the new task, just enter the information needed and use the user of “System”(Exactly, case sensitive) as the user.
Note: System or NT AUTHORITY\SYSTEM, where I will use System only where it is easy to remember.

If you are modifying old task, change the user to System and use empty password.

Windows Server 2008,
With Windows Server 2008, go to the Administrative tool and look for Task Scheduler.

When you create the task or modify it, just click the button of “Change User or Group…” and change it to SYSTEM. That all.