Tag: Windows 2003

Windows 2003 RDP: “The system cannot log you on due to the following error: The RPC server is unavailable

I was recently having issues in taking the RDP session of a Windows 2003 server. When I use the RDP Session, it was giving me an error stating “The system cannot log you on due to the following error: The RPC server is unavailable”. This issue is dependent on the below listed reasons:

1. Incorrect DNS settings.
2. Incorrect Time and Time zone settings.
3. The “TCP/IP NetBIOS Helper” service isn’t running.
4. The “Remote Registry” service isn’t running.

In my case, the issue was due to the service “TCP/IP NetBIOS Helper” was not running. I logged on to the server using the local admin credentials and was able to start the service to fix the issue.


Filed under: Windows(2003/2008/2012)Tagged with: , , , ,

Robocopy: How to copy files to a another drive, or server – only if they have changed?

With the robocopy, we can use the below syntax to copy everything from “x:\source” to “\\server\x\dest” including sub-directories:

robocopy x:\source \\server\x\dest /e /r:0 /w:0

Robocopy will look for the date and time stamp of each file. If the file has not changed, it will skip it.

Usage of parameters is as follows:

/e – This will include sub-folders, even if empty

/r:0 – Retry on failure zero times. No retries in this example. It will keep restarting the copy on failure

/w:0 – The number of seconds to wait between failures

Above won’t do is delete files on the destination if they have been deleted on the source. This can be attained by using /purge option:

robocopy X:\source \\server\X\dest /e /r:0 /w:0 /purge

Note: Usage of /purge will delete files on the destination. If you have an empty directory in source, you will end up with an empty directory on the destination.


Filed under: Storage (EMC/NetApp), Windows(2003/2008/2012)Tagged with: , , , , , , ,

Backup and Restore Network Configuration on Windows Servers

While server re-image you would need to make a note of existing network configuration settings and then manually complete the configuration once the server is completed with OS Deployment. This is bit uneasy task and Sometimes, this is more tough while using ILO.

Therefore, it is good to use command to backup and restore the settings. This should complete the task in seconds.

Use the following command to backup your network configuration:
netsh interface dump > netcfg.dat

Use the following command to restore your network configuration:
netsh exec netcfg.dat

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , ,

How to Enable and disable NICs from command line?

Often when you are troubleshooting an issue with Windows Operating System, you would use the Command Prompt and there are scenarios were you would need to disable one of the NIC using command line, I often need this while troubleshooting with imaging issue. I’ve got the handy command.

C:\>wmic nic get name, index

you will find the output like
1 Broadcom NetLink (TM) Gigabit Ethernet
2 Broadcom NetLink (TM) Gigabit Ethernet #2
3 WAN Miniport (L2TP)
4 WAN Miniport (PPTP)
5 WAN Miniport (PPPOE)
6 WAN Miniport (IP)
7 Intel(R) WiFi Link 5100 AGN
8 WAN Miniport (Network Monitor)

Now, if you wish to disable “Broadcom NetLink (TM) Gigabit Ethernet #2”

Please execute the below command

C:\>wmic path win32_networkadapter where index=2 call disable

This should now disable the NIC “Broadcom NetLink (TM) Gigabit Ethernet #2”


Filed under: Windows(2003/2008/2012)Tagged with: , , , , , ,

Convert HP Standard TCP/IP ports to MS Standard TCP/IP ports

The print spooler may crash or experience unexpected behavior such as high CPU utilization. Additionally, some printers may display “offline” status.

This behavior can occur due to HPTCPMON.DLL, HP’s Standard TCP/IP port.

Most network printers support the TCP/IP protocol. The standard TCP/IP port simplifies connecting to remote printers using the TCP/IP protocol. A computer that acts as a print server must run the TCP/IP protocol in order to print.

Follow the below steps to convert to MS Standard TCP/IP Ports:

1. Open the registry editor and export the following key to a .REG file.
2. HKLM\SYSTEM\CurrentControlSet\Control\Print\Monitors\HP Standard TCP/IP Port
3. Delete the following registry key.
4. HKLM\SYSTEM\CurrentControlSet\Control\Print\Monitors\HP Standard TCP/IP Port
5. Open the .REG file created in step 1 with Notepad.
6. From the Edit menu, choose Replace.
7. Replace all instances of “HP Standard TCP/IP Port” with “Standard TCP/IP Port” and save the file.
8. Double click the .REG file to import it.
9. Change the “Driver” value under the following key back to “tcpmon.dll”.
10. HKLM\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port
11. Restart the Print Spooler service.


Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , , , , ,