SlideShare a Scribd company logo
1 of 17
Download to read offline
10 Windows 7 commands every
administrator should know

PREPARED BY RAVI KUMAR LANKE

Page 1
The command line is often the best place to resolve Windows 7
desktop problems. These basic commands will help speed your
troubleshooting tasks.

PC troubleshooting is becoming less common in larger organizations, but consultants and
techs in smaller shops still have to get their hands dirty identifying and fixing desktop
problems. Oftentimes, troubleshooting Windows 7 means delving into the command line.
Here are 10 fundamental Windows 7 commands you might find helpful.

1: System File Checker
Malicious software will often attempt to replace core system files with modified versions in
an effort to take control of the system. The System File Checker can be used to verify the
integrity of the Windows system files. If any of the files are found to be missing or corrupt,
they will be replaced. You can run the System File Checker by using this command:

sfc /scannow

PREPARED BY RAVI KUMAR LANKE

Page 2
PREPARED BY RAVI KUMAR LANKE

Page 3
2: File Signature Verification
One way to verify the integrity of a system is to make sure that all the system files are
digitally signed. You can accomplish this with the File Signature Verification tool. This tool is
launched from the command line but uses a GUI interface. It will tell you which system files
are signed and which aren't. As a rule, all the system files should be digitally signed,
although some hardware vendors don't sign driver files. The command used to launch the
File Signature Verification tool is:

sigverif

PREPARED BY RAVI KUMAR LANKE

Page 4
PREPARED BY RAVI KUMAR LANKE

Page 5
Click Close

PREPARED BY RAVI KUMAR LANKE

Page 6
3: Driverquery
Incorrect device drivers can lead to any number of system problems. If you want to see
which drivers are installed on a Windows 7 system, you can do so by running the
driverquery tool. This simple command-line tool provides information about each driver that
is being used. The command is:

driverquery
If you need a bit more information, you can append the -v switch. Another option is to
append the -si switch, which causes the tool to display signature information for the drivers.
Here's how they look:

driverquery -v
driverquery –si

PREPARED BY RAVI KUMAR LANKE

Page 7
PREPARED BY RAVI KUMAR LANKE

Page 8
4: Nslookup
The nslookup tool can help you to verify that DNS name resolution is working correctly.
When you run nslookup against a host name, the tool will show you how the name was
resolved, as well as which DNS server was used during the lookup. This tool can be
extremely helpful when troubleshooting problems related to legacy DNS records that still
exist but that are no longer correct.
To use this tool, just enter the nslookup command, followed by the name of the host you
want to resolve. For example:

nslookup dc1.contoso.com

PREPARED BY RAVI KUMAR LANKE

Page 9
5: Ping
Ping is probably the simplest of all diagnostic commands. It's used to verify basic TCP/IP
connectivity to a network host. To use it, simply enter the command, followed by the name
or IP address of the host you want to test. For example:

ping 192.168.1.1
Keep in mind that this command will work only if Internet Control Message Protocol (ICMP)
traffic is allowed to pass between the two machines. If at any point a firewall is blocking
ICMP traffic, the ping will fail.

PREPARED BY RAVI KUMAR LANKE

Page 10
6: Pathping
Ping does a good job of telling you whether two machines can communicate with one
another over TCP/IP, but if a ping does fail, you won't receive any information regarding the
nature of the failure. This is where the pathping utility comes in.
Pathping is designed for environments in which one or more routers exist between hosts. It
sends a series of packets to each router that's in the path to the destination host in an effort
to determine whether the router is performing slowly or dropping packets. At its simplest,
the syntax for pathping is identical to that of the ping command (although there are some
optional switches you can use). The command looks like this:

pathping 192.168.1.1

PREPARED BY RAVI KUMAR LANKE

Page 11
7: Ipconfig
The ipconfig command is used to view or modify a computer's IP addresses. For example, if
you wanted to view a Windows 7 system's full IP configuration, you could use the following
command:

ipconfig /all
Assuming that 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. Doing so involves using the
following commands:

ipconfig /release
ipconfig /renew
Another handy thing you can do with ipconfig is flush the DNS resolver cache. This can be
helpful when a system is resolving DNS addresses incorrectly. You can flush the DNS
cache by using this command:

ipconfig /flushdns

PREPARED BY RAVI KUMAR LANKE

Page 12
PREPARED BY RAVI KUMAR LANKE

Page 13
8: Repair-bde
If a drive that is encrypted with BitLocker has problems, you can sometimes recover the
data using a utility called repair-bde. To use this command, you will need a destination drive
to which the recovered data can be written, as well as your BitLocker recovery key or
recovery password. The basic syntax for this command is:

repair-bde <source> <destination> -rk | rp <source>
You must specify the source drive, the destination drive, and either the rk (recovery key) or
the rp (recovery password) switch, along with the path to the recovery key or the recovery
password. Here are two examples of how to use this utility:

repair-bde c: d: -rk e:recovery.bek
repair-bde c: d: -rp 111111-111111-111111-111111111111-111111

PREPARED BY RAVI KUMAR LANKE

Page 14
9: Tasklist
The tasklist command is designed to provide information about the tasks that are running on
a Windows 7 system. At its most basic, you can enter the following command:

tasklist
The tasklist command has numerous optional switches, but there are a couple I want to
mention. One is the -m switch, which causes tasklist to display all the DLL modules
associated with a task. The other is the -svc switch, which lists the services that support
each task. Here's how they look:

tasklist -m
tasklist –svc

PREPARED BY RAVI KUMAR LANKE

Page 15
PREPARED BY RAVI KUMAR LANKE

Page 16
10: Taskkill
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

PREPARED BY RAVI KUMAR LANKE

Page 17

More Related Content

What's hot

101 1.3 runlevels , shutdown, and reboot
101 1.3 runlevels , shutdown, and reboot101 1.3 runlevels , shutdown, and reboot
101 1.3 runlevels , shutdown, and reboot
Acácio Oliveira
 
Tutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk WebhostingTutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk Webhosting
Beni Krisbiantoro
 

What's hot (20)

Configuration Firewalld On CentOS 8
Configuration Firewalld On CentOS 8Configuration Firewalld On CentOS 8
Configuration Firewalld On CentOS 8
 
101 1.3 runlevels , shutdown, and reboot
101 1.3 runlevels , shutdown, and reboot101 1.3 runlevels , shutdown, and reboot
101 1.3 runlevels , shutdown, and reboot
 
Slim Server Practical
Slim Server PracticalSlim Server Practical
Slim Server Practical
 
Licão 08 system redirects
Licão 08 system redirectsLicão 08 system redirects
Licão 08 system redirects
 
Proactive monitoring with Monit
Proactive monitoring with MonitProactive monitoring with Monit
Proactive monitoring with Monit
 
Linux administration ii-parti
Linux administration ii-partiLinux administration ii-parti
Linux administration ii-parti
 
Linux Network commands
Linux Network commandsLinux Network commands
Linux Network commands
 
Firewalld LAB
Firewalld LABFirewalld LAB
Firewalld LAB
 
2. reverse primarydns using bind for ptr and cname record ipv4
2. reverse primarydns using bind for ptr and cname record ipv42. reverse primarydns using bind for ptr and cname record ipv4
2. reverse primarydns using bind for ptr and cname record ipv4
 
Tutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk WebhostingTutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk Webhosting
 
Command-Line 101
Command-Line 101Command-Line 101
Command-Line 101
 
DNS SERVER
DNS SERVERDNS SERVER
DNS SERVER
 
From A to Z | WireShark Tutorial
From A to Z | WireShark TutorialFrom A to Z | WireShark Tutorial
From A to Z | WireShark Tutorial
 
3.4 use streams, pipes and redirects v2
3.4 use streams, pipes and redirects v23.4 use streams, pipes and redirects v2
3.4 use streams, pipes and redirects v2
 
How can I use GNU cotreutils & other command line tools to get a sorted list ...
How can I use GNU cotreutils & other command line tools to get a sorted list ...How can I use GNU cotreutils & other command line tools to get a sorted list ...
How can I use GNU cotreutils & other command line tools to get a sorted list ...
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
Post exploitation using powershell
Post exploitation using powershellPost exploitation using powershell
Post exploitation using powershell
 
lec4.docx
lec4.docxlec4.docx
lec4.docx
 
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure
 
LSOF Command Usage on RHEL 7
LSOF Command Usage on RHEL 7LSOF Command Usage on RHEL 7
LSOF Command Usage on RHEL 7
 

Viewers also liked

Importing knowledge modules odi 10g and 11g
Importing knowledge modules odi 10g and 11gImporting knowledge modules odi 10g and 11g
Importing knowledge modules odi 10g and 11g
Ravi Kumar Lanke
 
Cool Business Tool – это универсальный сервис для подбора бизнес-тренеров и к...
Cool Business Tool – это универсальный сервис для подбора бизнес-тренеров и к...Cool Business Tool – это универсальный сервис для подбора бизнес-тренеров и к...
Cool Business Tool – это универсальный сервис для подбора бизнес-тренеров и к...
Fert
 
Devsumi 2013 Action! -公募セッション-
Devsumi 2013 Action! -公募セッション-Devsumi 2013 Action! -公募セッション-
Devsumi 2013 Action! -公募セッション-
Developers Summit
 

Viewers also liked (20)

Duurzaam huisvesten - Vormen van Duiding - Case ABN AMRO
Duurzaam huisvesten - Vormen van Duiding - Case ABN AMRODuurzaam huisvesten - Vormen van Duiding - Case ABN AMRO
Duurzaam huisvesten - Vormen van Duiding - Case ABN AMRO
 
5 Dos and 5 Don'ts of Networking!
5 Dos and 5 Don'ts of Networking!5 Dos and 5 Don'ts of Networking!
5 Dos and 5 Don'ts of Networking!
 
Learn to do Primary Market Research: Interviews and Surveys
Learn to do Primary Market Research: Interviews and SurveysLearn to do Primary Market Research: Interviews and Surveys
Learn to do Primary Market Research: Interviews and Surveys
 
Eureka tourism 2nd brokerage event
Eureka tourism 2nd brokerage eventEureka tourism 2nd brokerage event
Eureka tourism 2nd brokerage event
 
Dac 11 g installation and configuration on windows server 2008 r2
Dac 11 g installation and configuration on windows server 2008 r2Dac 11 g installation and configuration on windows server 2008 r2
Dac 11 g installation and configuration on windows server 2008 r2
 
Building personas
Building personasBuilding personas
Building personas
 
Importing knowledge modules odi 10g and 11g
Importing knowledge modules odi 10g and 11gImporting knowledge modules odi 10g and 11g
Importing knowledge modules odi 10g and 11g
 
Collaborative resource discovery: researchers needs for navigation in a sea o...
Collaborative resource discovery: researchers needs for navigation in a sea o...Collaborative resource discovery: researchers needs for navigation in a sea o...
Collaborative resource discovery: researchers needs for navigation in a sea o...
 
Noticias tel mayo 2011
Noticias tel mayo 2011Noticias tel mayo 2011
Noticias tel mayo 2011
 
Tips and tricks for navigating the new windows 8 user interface
Tips and tricks for navigating the new windows 8 user interfaceTips and tricks for navigating the new windows 8 user interface
Tips and tricks for navigating the new windows 8 user interface
 
Cool Business Tool – это универсальный сервис для подбора бизнес-тренеров и к...
Cool Business Tool – это универсальный сервис для подбора бизнес-тренеров и к...Cool Business Tool – это универсальный сервис для подбора бизнес-тренеров и к...
Cool Business Tool – это универсальный сервис для подбора бизнес-тренеров и к...
 
Bsd
BsdBsd
Bsd
 
26 1
26 126 1
26 1
 
Installing vpn client
Installing vpn clientInstalling vpn client
Installing vpn client
 
Architecten en energieprestatiecontracten
Architecten en energieprestatiecontractenArchitecten en energieprestatiecontracten
Architecten en energieprestatiecontracten
 
Fast Food/Casual QSR Restaurant Tour of Sydney Australia 2014
Fast Food/Casual QSR Restaurant Tour of Sydney Australia 2014Fast Food/Casual QSR Restaurant Tour of Sydney Australia 2014
Fast Food/Casual QSR Restaurant Tour of Sydney Australia 2014
 
Installing solaris on virtual box and installing weblogic server
Installing solaris on virtual box and installing weblogic server Installing solaris on virtual box and installing weblogic server
Installing solaris on virtual box and installing weblogic server
 
Devsumi 2013 Action! -公募セッション-
Devsumi 2013 Action! -公募セッション-Devsumi 2013 Action! -公募セッション-
Devsumi 2013 Action! -公募セッション-
 
Devsumi2013 community
Devsumi2013 communityDevsumi2013 community
Devsumi2013 community
 
夏サミ2013 Hadoopを使わない独自の分散処理環境の構築とその運用
夏サミ2013 Hadoopを使わない独自の分散処理環境の構築とその運用夏サミ2013 Hadoopを使わない独自の分散処理環境の構築とその運用
夏サミ2013 Hadoopを使わない独自の分散処理環境の構築とその運用
 

Similar to 10 windows 7 commands every administrator should know

It04 roshan basnet
It04 roshan basnetIt04 roshan basnet
It04 roshan basnet
rosu555
 

Similar to 10 windows 7 commands every administrator should know (20)

Commands
CommandsCommands
Commands
 
M7 - Manual
M7 - ManualM7 - Manual
M7 - Manual
 
Intrusion Discovery on Windows
Intrusion Discovery on WindowsIntrusion Discovery on Windows
Intrusion Discovery on Windows
 
Linux System Monitoring basic commands
Linux System Monitoring basic commandsLinux System Monitoring basic commands
Linux System Monitoring basic commands
 
Interview questions
Interview questionsInterview questions
Interview questions
 
Intro xp linux
Intro xp linuxIntro xp linux
Intro xp linux
 
20 Windows Tools Every SysAdmin Should Know
20 Windows Tools Every SysAdmin Should Know20 Windows Tools Every SysAdmin Should Know
20 Windows Tools Every SysAdmin Should Know
 
Linux Server Deep Dives (DrupalCon Amsterdam)
Linux Server Deep Dives (DrupalCon Amsterdam)Linux Server Deep Dives (DrupalCon Amsterdam)
Linux Server Deep Dives (DrupalCon Amsterdam)
 
Linux System Monitoring
Linux System Monitoring Linux System Monitoring
Linux System Monitoring
 
Windows 7 command prompt commands
Windows 7 command prompt commandsWindows 7 command prompt commands
Windows 7 command prompt commands
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux commands
Linux commandsLinux commands
Linux commands
 
2- System Initialization in Red Hat
2- System Initialization in Red Hat2- System Initialization in Red Hat
2- System Initialization in Red Hat
 
dotor.pdf
dotor.pdfdotor.pdf
dotor.pdf
 
It04 roshan basnet
It04 roshan basnetIt04 roshan basnet
It04 roshan basnet
 
Computer technicians-quick-reference-guide
Computer technicians-quick-reference-guideComputer technicians-quick-reference-guide
Computer technicians-quick-reference-guide
 
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
Nagios Conference 2011 - Nate Broderick - Nagios XI Large Implementation Tips...
 
Windows PowerShell
Windows PowerShellWindows PowerShell
Windows PowerShell
 
55 best linux tips, tricks and command lines
55 best linux tips, tricks and command lines55 best linux tips, tricks and command lines
55 best linux tips, tricks and command lines
 

More from Ravi Kumar Lanke

More from Ravi Kumar Lanke (20)

Creating and configuring vnc sessions
Creating and configuring vnc sessionsCreating and configuring vnc sessions
Creating and configuring vnc sessions
 
Copying files between linux machines using scp and ssh without linux user pas...
Copying files between linux machines using scp and ssh without linux user pas...Copying files between linux machines using scp and ssh without linux user pas...
Copying files between linux machines using scp and ssh without linux user pas...
 
Exporting schema to dmp file and importing it into other oracle database
Exporting schema to dmp file and importing it into other oracle databaseExporting schema to dmp file and importing it into other oracle database
Exporting schema to dmp file and importing it into other oracle database
 
Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...
Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...
Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...
 
Enabling remote desktop connection on windows 7 64 bit
Enabling remote desktop connection on windows 7 64 bitEnabling remote desktop connection on windows 7 64 bit
Enabling remote desktop connection on windows 7 64 bit
 
Connecting to the remote database through sql developer without database clie...
Connecting to the remote database through sql developer without database clie...Connecting to the remote database through sql developer without database clie...
Connecting to the remote database through sql developer without database clie...
 
Setting home path class path and path for java on windows 7
Setting home path class path and path for java on windows 7Setting home path class path and path for java on windows 7
Setting home path class path and path for java on windows 7
 
How to find ip and mac address
How to find ip and mac addressHow to find ip and mac address
How to find ip and mac address
 
Step by step deployment of sampleappv406
Step by step deployment of  sampleappv406Step by step deployment of  sampleappv406
Step by step deployment of sampleappv406
 
Installing and configuring informatica 910 and dac 11 g on windows 64 bit
Installing and configuring informatica 910 and dac 11 g on windows 64 bitInstalling and configuring informatica 910 and dac 11 g on windows 64 bit
Installing and configuring informatica 910 and dac 11 g on windows 64 bit
 
Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0
Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0
Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0
 
Installing my sql on windows
Installing my sql on windowsInstalling my sql on windows
Installing my sql on windows
 
How to prevent access to command prompt and registry editing tools and window...
How to prevent access to command prompt and registry editing tools and window...How to prevent access to command prompt and registry editing tools and window...
How to prevent access to command prompt and registry editing tools and window...
 
How to disable and enable task manager
How to disable and enable task managerHow to disable and enable task manager
How to disable and enable task manager
 
Deploying an application into oracle endeca tools and frame works
Deploying an application into oracle endeca tools and frame worksDeploying an application into oracle endeca tools and frame works
Deploying an application into oracle endeca tools and frame works
 
Installing oracle endeca commerce
Installing oracle endeca commerceInstalling oracle endeca commerce
Installing oracle endeca commerce
 
How to deploy rpd and catalog without enterprise manger
How to deploy rpd and catalog without enterprise mangerHow to deploy rpd and catalog without enterprise manger
How to deploy rpd and catalog without enterprise manger
 
How to change the obiee 11g browser title
How to change the obiee 11g browser titleHow to change the obiee 11g browser title
How to change the obiee 11g browser title
 
Creating new service name for oracle database
Creating new service name for oracle databaseCreating new service name for oracle database
Creating new service name for oracle database
 
Installing oracle database 11.2.0.3 on windows
Installing oracle database 11.2.0.3 on windowsInstalling oracle database 11.2.0.3 on windows
Installing oracle database 11.2.0.3 on windows
 

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Recently uploaded (20)

PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 

10 windows 7 commands every administrator should know

  • 1. 10 Windows 7 commands every administrator should know PREPARED BY RAVI KUMAR LANKE Page 1
  • 2. The command line is often the best place to resolve Windows 7 desktop problems. These basic commands will help speed your troubleshooting tasks. PC troubleshooting is becoming less common in larger organizations, but consultants and techs in smaller shops still have to get their hands dirty identifying and fixing desktop problems. Oftentimes, troubleshooting Windows 7 means delving into the command line. Here are 10 fundamental Windows 7 commands you might find helpful. 1: System File Checker Malicious software will often attempt to replace core system files with modified versions in an effort to take control of the system. The System File Checker can be used to verify the integrity of the Windows system files. If any of the files are found to be missing or corrupt, they will be replaced. You can run the System File Checker by using this command: sfc /scannow PREPARED BY RAVI KUMAR LANKE Page 2
  • 3. PREPARED BY RAVI KUMAR LANKE Page 3
  • 4. 2: File Signature Verification One way to verify the integrity of a system is to make sure that all the system files are digitally signed. You can accomplish this with the File Signature Verification tool. This tool is launched from the command line but uses a GUI interface. It will tell you which system files are signed and which aren't. As a rule, all the system files should be digitally signed, although some hardware vendors don't sign driver files. The command used to launch the File Signature Verification tool is: sigverif PREPARED BY RAVI KUMAR LANKE Page 4
  • 5. PREPARED BY RAVI KUMAR LANKE Page 5
  • 6. Click Close PREPARED BY RAVI KUMAR LANKE Page 6
  • 7. 3: Driverquery Incorrect device drivers can lead to any number of system problems. If you want to see which drivers are installed on a Windows 7 system, you can do so by running the driverquery tool. This simple command-line tool provides information about each driver that is being used. The command is: driverquery If you need a bit more information, you can append the -v switch. Another option is to append the -si switch, which causes the tool to display signature information for the drivers. Here's how they look: driverquery -v driverquery –si PREPARED BY RAVI KUMAR LANKE Page 7
  • 8. PREPARED BY RAVI KUMAR LANKE Page 8
  • 9. 4: Nslookup The nslookup tool can help you to verify that DNS name resolution is working correctly. When you run nslookup against a host name, the tool will show you how the name was resolved, as well as which DNS server was used during the lookup. This tool can be extremely helpful when troubleshooting problems related to legacy DNS records that still exist but that are no longer correct. To use this tool, just enter the nslookup command, followed by the name of the host you want to resolve. For example: nslookup dc1.contoso.com PREPARED BY RAVI KUMAR LANKE Page 9
  • 10. 5: Ping Ping is probably the simplest of all diagnostic commands. It's used to verify basic TCP/IP connectivity to a network host. To use it, simply enter the command, followed by the name or IP address of the host you want to test. For example: ping 192.168.1.1 Keep in mind that this command will work only if Internet Control Message Protocol (ICMP) traffic is allowed to pass between the two machines. If at any point a firewall is blocking ICMP traffic, the ping will fail. PREPARED BY RAVI KUMAR LANKE Page 10
  • 11. 6: Pathping Ping does a good job of telling you whether two machines can communicate with one another over TCP/IP, but if a ping does fail, you won't receive any information regarding the nature of the failure. This is where the pathping utility comes in. Pathping is designed for environments in which one or more routers exist between hosts. It sends a series of packets to each router that's in the path to the destination host in an effort to determine whether the router is performing slowly or dropping packets. At its simplest, the syntax for pathping is identical to that of the ping command (although there are some optional switches you can use). The command looks like this: pathping 192.168.1.1 PREPARED BY RAVI KUMAR LANKE Page 11
  • 12. 7: Ipconfig The ipconfig command is used to view or modify a computer's IP addresses. For example, if you wanted to view a Windows 7 system's full IP configuration, you could use the following command: ipconfig /all Assuming that 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. Doing so involves using the following commands: ipconfig /release ipconfig /renew Another handy thing you can do with ipconfig is flush the DNS resolver cache. This can be helpful when a system is resolving DNS addresses incorrectly. You can flush the DNS cache by using this command: ipconfig /flushdns PREPARED BY RAVI KUMAR LANKE Page 12
  • 13. PREPARED BY RAVI KUMAR LANKE Page 13
  • 14. 8: Repair-bde If a drive that is encrypted with BitLocker has problems, you can sometimes recover the data using a utility called repair-bde. To use this command, you will need a destination drive to which the recovered data can be written, as well as your BitLocker recovery key or recovery password. The basic syntax for this command is: repair-bde <source> <destination> -rk | rp <source> You must specify the source drive, the destination drive, and either the rk (recovery key) or the rp (recovery password) switch, along with the path to the recovery key or the recovery password. Here are two examples of how to use this utility: repair-bde c: d: -rk e:recovery.bek repair-bde c: d: -rp 111111-111111-111111-111111111111-111111 PREPARED BY RAVI KUMAR LANKE Page 14
  • 15. 9: Tasklist The tasklist command is designed to provide information about the tasks that are running on a Windows 7 system. At its most basic, you can enter the following command: tasklist The tasklist command has numerous optional switches, but there are a couple I want to mention. One is the -m switch, which causes tasklist to display all the DLL modules associated with a task. The other is the -svc switch, which lists the services that support each task. Here's how they look: tasklist -m tasklist –svc PREPARED BY RAVI KUMAR LANKE Page 15
  • 16. PREPARED BY RAVI KUMAR LANKE Page 16
  • 17. 10: Taskkill 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 PREPARED BY RAVI KUMAR LANKE Page 17