System Admin

Remote Desktop:

In day-today activities while working on server, you will face the  error  “maximum number of users exceeded”  while RDP the server using the command MSTSC . In this case use the following command to RDP the server console.

Run ==>    mstsc /console

Run ==>    mstsc /admin

So now you will not face any problem in login to the server.

How to change the listening port for Remote Desktop:

The default port to RDP the windows server is 3389. But for security purpose, we will change it to any other unused ports. To configure the server to some other port, changes have to be made on the registry level. So before making any changes on the registry, take a backup of registry and then proceed.

  • Open the registry editor.
  • Locate the following path in the registry.


  • Right click the port number and select modify. It will open edit menu, click Modify, and then click Decimal.
  • Type the new port number, and then click OK.

In this case I have selected 3345 as a default port and then quit the registry.

As of now you are able to RDP the server using the port 3345. So hence forth the RDP can be accessed using the IP address followed by port number.

IP: port number  EG (

So now your server is secured and it cannot be accessed with out knowing the corresponding port number.


Netstat: (Command to check listening ports in the server)

This is a command line tool that displays network connections  (ie) Both incoming and outgoing connections . It is used for finding problems in the network and to determine the amount of traffic on the network as a performance measurement. It is used to find the active sessions and listening ports in the server.

The following command displays all active TCP connections and the TCP and UDP ports on which the computer is listening.

netstat -a

Command to display active TCP connections with process ID (PID) for each connection.

netstat -o

netstat -nao

netstat -ao

The details of the active sessions can be stored in the notepad using the netstat command followed by the path to store.

netstat -o >c:/notepad.txt

Here notepad will be stored in the c drive. All the listening port details can be viewed by accessing the notepad.


Backing Up and Restoring the Registry:

Before making any changes on the registry it should be backed up. If there is any problem occurs it can be restored.

  • Open the registry editor.

Click the file menu in the registry editor.

Click the export tab to take a backup and store it in .reg format.

To restore the registry, use the import tab.

By double clicking the backup file in the format .reg. It can be restored to registry.


Performance Tuning: Virtual Memory management on windows servers:

Memory tweaking is an important part of the system administrator’s responsibilities. Optimizing your page file when you’re running low on RAM is always a good idea. When all physical RAM in a computer is in use, Windows starts using the hard disk as if it were additional RAM. This is why we have a Pagefile (also called the swap file). Because RAM memory is a lot faster than the hard disk, whenever the computer begins to use the Pagefile to relieve memory pressure, we begin to experience a drastic performance degradation. The default size of this file is 1.5 times the amount of physical memory.

Steps to increase Virtual memory:

Right click My Computer ==> Click Properties ==> This will open the System Properties window.

In the System Properties window==> Click  Advanced tab ==>  Click settings under Performance tab.

This will open Performance Options window ==>  Select advanced and click Change button under  Virtual  memory tab

This will open Virtual memory window.

Select the Custom size radio button==> Specify the Initial size and maximum size of the virtual memory ==> Click  set and Click OK button.


MSCONFIG: Microsoft System Configuration Utility.

Msconfig is a build in windows tool designed to help and troubleshoot the system. Msconfig can also be used to ensure the computer boots faster and crash less.  Every time you boot your computer a whole mess of “hidden” programs load in the background. Some of these hidden programs are essential, but most aren’t. Turning off some of these hidden programs can significantly increase your computer’s performance and reliability.

To Open MSConfig”==>  Go to START ==> Click  Run and type msconfig.

This will open the Msconfig window.

Click startup tab in the msconfig window. Startup items are programs that are automatically loaded every time you turn on your computer. Some startup programs are absolutely necessary, others are simply a waste of RAM. So you can disable the unwanted applications in the startup tab. So the disabled applications will not run every time the system turned on.

Disable only those programs that you recognize and don’t need to have running all the time. If you have a doubt, leave it on.

After making changes on the Msconfig the system will prompt for a reboot. Click restart and your system will automatically rebooted.


How to remove the particular services in the services.msc:

If you have to remove the particular services. That particular entry should be removed in the registry editor. The steps below shows the how this can be done.

Click Start | Run and type regedit in the Open: line. Click OK.

Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

Scroll down the left pane, locate the service name, right click it and select Delete.

Reboot the system

To create and remove the service through command prompt:

Start ==>  Run ==> Type cmd and it will take you to command prompt.
Type:  sc create <service name>
Reboot the system

To remove the service:

Type:  sc delete <service name>
Reboot the system

EG:  sc delete clipbook


How to protect the desktops from anti virus:

Most of the time the computers may get affected from virus through pen drive, media and flash drives. This can be avoided by disabling the autoplay future in the group policy editor. Normally the default feature in windows will search for Autorun.inf  file which contains all the information about the things to do when media is plugged in.

By Turning off the autorun future, we can get rid of antivirus problems. This article will help you, how this can be done.

Start ==> Run ==> gpedit.msc

Group policy editor will open.


How to Kill the unwanted process through command prompt:

The unwanted process can be killed through task manager  and also through command prompt.

First go to command prompt and execute the following command.

taskkill /f /im programname.exe

/f parameter refers to force the taskkill.
/im parameter refers to kill the other linking tasks that may be causing problem.

That’s it. The process will be killed.


Configuring Terminal Services Printing on windows server 2008:

>>Go to the following path in the group policy editor.

Use Terminal Services Easy Print printer driver first
This policy setting is located in the following node of the Local Group Policy Editor:
Computer Configuration\Administrative Templates\Windows Components\Terminal Services\Terminal Server\Printer Redirection     Click


Autologin on reboot:
Follow the below steps to autologin the system on reboot.

Run – regedit

Expand the following

HKEY_LOCAL_MACHINE – SOFTWARE – Microsoft – Windows NT – Current Version – Winlogon.

1. Double click “AutoAdminLogon” and change the 0 to a 1 then hit OK.

2. Right click in a blank area of the window and select “New” > “String Value” then name it

“DefaultPassword” without the quotes.

3. Double click DefaultPassword and filled the administrator password.

Rebooted and checked, it works fine.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s