'); } ?>

Se7en + Bonus Windows 7 commands administrator should know

Command Prompt icon
When troubleshooting Windows 7 in large organizations, it becomes less common,
but help desk stuff still have go get dirty identifying and fixing problems with desktop computers. Often, troubleshooting Windows 7 means diving into the command
prompt and typing. Here are Seven useful Windows 7 commands that might be helpful in day to day basic, and sometimes complex troubleshooting.

Before I start…

This post is intended as an introduction to some useful troubleshooting commands which will help along with some other things that IT Pros need to know when administering Windows 7. Many of them offer optional switches, which won’t be cover here due to space limitations, but you can always get help, just type command with questionnaire mark
( example: ping /? ), you will get all the switches for that command.

First off all start Command Prompt, use Windows button + R to start Run box, type cmd, end command prompt is here.

Command Prompt Windows 7

Then start to use following commands:

1: System File Checker

Malicious software and programs often will attempt to replace core system files with modified versions with purpose to control the system. The System File Checker can be used to verify the integrity of the Windows system files. If many of the files are missing or corrupt, they will be replaced. You can run the System File Checker by using this command:

sfc /scannow

2: File Signature Verification

There is a way to verify the integrity of a system to make sure that all the system files and drivers are digitally signed. You can accomplish this with the File Signature Verification tool. This tool can be start from the command line, but uses a GUI interface. It will you which system files should be digitally signed, although some hardware vendors don’t sign driver files. The command used to lunch the  File Signature Verification too, is:


3: Driverquery

Incorrect device driver can lead to many system problems, even crash of the windows OS. If you want to see which drivers are installed on a Windows 7 OS, you can do so by running the driverquery tool. This simple command-line tool provides information about each driver that is being used by the Operative System Windows 7. The command is:


If you need more information, you can append switch -v ( displaing verbose output) . Another options is to append the -si switch , which display signature information for the drivers. they look like this:

driverquery -v
driverquery -si

4: Nslookup

The nslookup tool can help for resolving names, it verify  DNS name resolution. When you run  nslookup against a host name, this command line tool wil show you how tne name was resolved from IP address to hostname, as well as which DNS server was used during the lookup. This tool can be very  helpful when troubleshooting problems related to DNS records ( in forward and reverse lookup zones ), for records that still exist but that are no longer correct. Also this tool can help resolving reverse lookup ( resolving IP address to name ). To use this tool, just enter the nslookup command, followed by the name ( or IP address ) of the host you want to resolve. For example:

nslookup dc1.mydomain.com

5: Ping

Ping is probably the simplest of all diagnostic commands, but also one of most used. It’s used to verify basic TCP/IP connectivity to a network host. To use it, just enter the ping command, followed by name or IP address of the host you want to test the connection. For example:

ping   or

Keep in mind that this command will work only if ICMP Protocol (  Internet Control Message Protocol ) traffic is allowed to pass between the two computers or network devices. If at any point in the middle is firewall, that is configured to block ICMP traffic, the ping will fail.

6: Ipconfig

The ipconfig command is used to view computer’s IP addresses, or to release and to renew IP addresses that are obtained from DHCP server. For example, if you wanted to view a Windows 7 system’s full IP configuration, you could use the following command:
ipconfig /all

If the system has acquired its IP address from a DHCP server, you can use the ipconfig command to release, and then renew the IP address. To do this use the following commands:

ipconfig /release

ipconfig /renew

Another helpful switch for this command is to flush the DNS resolver cache, and then to re-register DNS names. This is hepful when a system is resolving DNS addresses incorectly. You can flush the DNS cache by using this command:

ipconfig /flushdns   and to register DNS name     ipconfig /registerdns

7: Tasklist and Taskkill

The tasklist command is create to provide information about the tasks that are running on a Windows 7 operative system. At is most basic form, enter the following command:


The tasklist command has many optional switches, but there are a couple that are commonly used. One of them is the -m switch, which casues tasklist to display all the DLL libraries associated with a task. The other is the -svc switch, which lists the services that support each task, They look like this:

tasklist -m

tasklist -svc

The taskkill command terminates a task, either by name (which is referred to as the image name) or by process ID. The syntax for this command is simple. You must follow the taskkill command with -pid (process ID) or -im (image name) and the name or process ID of the task that you want to terminate. Here are two examples of how this command works:

taskkill -pid 4104

taskkill -im iexplore.exe


Like a BONUS I will show you one of the most used and effective command by my opinion. This command is net start ( and his opponent net stop – depend what you use it for ). This command net start show you the list of all services that are started by the service name. You can stop the service , or you can start the service again, it look like this:

net stop “Service Name”       or      net start “Service Name”

There are many commands 7 in Windows 7, but here I mentioned most effective, some of the other perhaps in a subsequent article.