You are on page 1of 39

Windows Command Guide

Version 4.0.0 RC (April 2011) [1200+ Commands]

World’s only ebook to provide complete information on Windows Commands.

Ebook is updating at least twice per month. Get the latest version: (PDF) / (XPS)

Welcome to the “Windows Command Guide”. Here you will get all types of Windows
commands, tips and tricks useful for Microsoft Windows. This ebook is useful for all Windows
version from Windows 2000 to Windows 7 or later. The 1 part (550+ commands) of this
ebook is for everyday computer user and the 2 part (700+ commands) is for advance user
and power user. Read this ebook and explore the precious contents inside.

As a computer user you may know about some commands. This ebook includes
every possible commands those available on Windows platform. The objective of the ebook is
to do more on Windows with less effort and became an expert. There are many long and
irregular commands, commonly you may not use it frequently – but these exist whether you
know it or not.

Who will read this ebook?

You don‟t need to be a programmer or expert to use this ebook. You may be
someone who just wants to use Windows in an innovative ways. You may be a desktop user,
system/network admin or software developer. This ebook makes ease the administrative and
support task and gives more power to more advance computing. Always refer to the
APPENDIX section for more tips and explanations. It is not easy to explain all the tools and
apps mentioned here, so use the web links in the REFERENCES.

 Only article (in the World) providing great info on Windows Commands.
 Organized for the best use of comman user and advance user.
 Every possible command (1200+) with useful connotations ans references.

BCDALAI's Free Tech. Support Blog

India, 2011
Windows Command Guide 2011

Teachers, Friends, IT Pro community, valuable Readers and
I would like to thanks to all the readers and IT Pro community the use, technical
reviews and feedbacks. Special complements to Mr. Manas Ranjan Mohaptra (of Hint),
Santosh, Subrat, Biswanath, Sudhansu, Himansu, Soumya and Amarnath, for their excellent
contribution and support. Also thanks to and for providing web services
for these works.
This content is completely free for everyone. This ebook licensed under Creative
Commons Attribution-NonCommercial-ShareAlike 2.5 India license [CC BY-NC-SA]. This
ebook must be shared in “Adobe PDF” or “Microsoft XPS” format. Language: EN-US.
This ebook is for educational and informational purposes. This ebook is provided as
“as is”. The author assumes that you will use it for productive purposes. All names,
registered trademarks and websites mentioned herein are the properties of their respective
The Author
bcdalai, (M.Com, MCP, MCSE, MCTS: Vista and MCTS: Windows 7). The author is
an IT Pro, working on Client, Server and Networks (system admin, Tech. Support, security,
troubleshooting and software review). He is available in Microsoft communities and in other
forums. You can find about him on internet (in Google/Yahoo).
Reach Out
Do you have more information or tips? Please contribute here with suggestions / comments
using Adobe Reader X (v10) and email. For any feedback on the ebook, contact author at:, Email:, Twitter: @bcdalai2020.

Copyright © 2004-2011, by bcdalai for “BCDALAI’s Free Tech. Support Blog”.

History: [Current Version: v4.0.0]

Time Version Changes
2011 4.0.X: Better presentation, testing; new command-line tools and tricks.
2010 3.X: 400 commands- 75 GUID; 30 shell commands; 40 netsh Commands.
Updates on Vista, Server 2008 / Server 2008 R2, Windows 7, Office 2010.
2009 2.X: major updates: 300 commands- 160 Command-line tools; 75 Control
Panel Applets; 160 Environment Variables; 110 rundll32 commands.
2008 Version 1.X: added more commands on: Vista and Windows Server 2008.
2004-07 Initial use, testing and first publication on 2007.

No great discovery was ever made without a bold guess. -Isaac Newton
Experience is the name everyone gives to their mistakes. -Oscar Wilde
Persistence and positive thinking to make things happen.

© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

PART – 1 (Everyone)
Chapter – 1
Windows RUN Commands
RUN Commands in Windows Vista
RUN Commands in Windows Server 2008 / 2008 R2
RUN Commands in Windows 7
Network RUN Commands
Chapter – 2
RUN Commands for Third-party Applications
Control Panel (applets) Commands
Command-line Tools:
Windows 2000 / XP / Server 2003
Windows Vista / Server 2008 / 2008 R2 /Windows 7

PART - 2 (Advance users)

Chapter – 3
Advance rundll32 Commands:
Windows 2000 / XP / Server 2003
Windows Vista / Server 2008 / 2008 R2 / Windows 7
Netsh Commands
Relative System Paths
Environment Variables
Environment Variables: Windows XP Embedded
Chapter – 4
Recovery Console Commands
Miscellaneous Commands
Appendix – A

What do you think of this ebook?

The author is interested in hearing your feedback, so he can improve this ebook for
you. To send your feedback, please email him at: or visit:

© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

PART – 1 (Everyone)
[Applies To: Common user, beginners and everyone.]

Chapter – 1
Windows RUN Commands
Table-1: [Applies To: Windows 2000 / XP / Server 2003 / Vista / Server 2008 / Windows 7.]
001 Accessibility Controls access.cpl I
002 Accessibility Wizard accwiz X
003 Add Hardware Wizard hdwwiz.cpl
004 Add/Remove Programs appwiz.cpl
005 Administrative Tools control admintools
006 Automatic Updates wuaucpl.cpl I
007 Bluetooth Transfer Wizard fsquirt
008 Calculator calc
009 Certificate Manager Console certmgr.msc
010 Character Map charmap
011 Clipboard Viewer clipbrd X
012 Command Prompt cmd
013 Component Services (DCOM/COM+ settings) dcomcnfg
014 Computer Management Console compmgmt.msc
015 Control Panel control
016 Date and Time Properties control date/time
017 Date and Time Properties timedate.cpl
018 DDE Shares ddeshare X
019 Device Manager Console devmgmt.msc
020 DirectX Diagnostic Tool dxdiag
021 Disk Cleanup Utility (Appendix-A2) cleanmgr
022 Disk Defragment Console dfrg.msc I
023 Disk Management Console diskmgmt.msc
024 Disk Partition Manager diskpart
025 Display Properties control desktop I
026 Display Properties desk.cpl I
027 Display Properties (Appearance tab pre-selected) control color
028 Dr. Watson System Troubleshooting Utility (16-bit) drwatson
029 Dr. Watson System Troubleshooting Utility (32-bit) drwtsn32 X
030 Driver Verifier Utility verifier
031 DVD Placeholder Utility (playing DVD in WMP) dvdplay
032 Event Viewer eventvwr
033 Event Viewer eventvwr.msc
034 File Signature Verification Tool sigverif
035 Files and Setting Transfer Wizard migwiz
036 Folders Properties control folders
037 Fonts Folder control fonts
038 Fonts Folder fonts
039 Game Controllers joy.cpl
040 Game: Free Cell freecell X
041 Game: Hearts Card Game mshearts X
042 Game: Internet Backgammon bckgzm X
043 Game: Internet Checkers chkrzm X
044 Game: Internet Hearts hrtzzm X
045 Game: Internet Reversi rvsezm X
046 Game: Internet Spades shvlzm X
047 Game: Minesweeper winmine X
048 Game: Pinball pinball X
049 Game: Solitaire sol X
050 Game: Spider Solitaire spider X
051 Group Policy Object Editor gpedit.msc
052 Help and Support Center helpctr X

© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

053 HyperTerminal hypertrm X

054 Iexpress Wizard (packaging tool) iexpress
055 Indexing Service Console ciadv.msc
056 Infrared Monitor (if installed) control infrared
057 Internet Connection Wizard icwconn1 X
058 Internet Explorer iexplore
059 Internet Explorer (InPrivate Mode) (IE8 or later) iexplore -private
060 Internet Explorer (no Add-ons) iexplore -extoff
061 Internet Properties inetcpl.cpl
062 Internet Setup Wizard inetwiz X
063 Keyboard Properties control keyboard
064 Local Security Settings Console secpol.msc
065 Local Users and Groups Console lusrmgr.msc
066 Log Off logoff
067 Mail client (Default) mailto:
068 Mail configurations (Microsoft Outlook settings) control mlcfg32.cpl
069 Microsoft Chat winchat
070 Microsoft Management Console (Appendix-A13) mmc
071 Microsoft Media Player (for audio only) mplay32 X
072 Microsoft Movie Maker moviemk X
073 Microsoft Narrator narrator
074 Microsoft Paint mspaint
075 Microsoft Paint pbrush
076 Microsoft Program Manager progman X
077 Microsoft Synchronization Manager mobsync
078 Mouse Properties control mouse
079 Mouse Properties main.cpl
080 MS-DOS Editor (text editor for MS-DOS) edit
081 Network Access Protection (NAP) Client UI napstat
082 Network Connections control netconnections
083 Network Connections ncpa.cpl
084 Network Setup Wizard (also Wireless) netsetup.cpl X
085 Notepad notepad
086 Novell NetWare (if installed) control netware
087 Object Packager packager X
088 On-Screen Keyboard osk
089 Outlook Express msimn I
090 Performance Monitor perfmon
091 Performance Monitor perfmon.msc
092 Phone and Modem Options control telephony
093 Phone and Modem Options telephon.cpl
094 Phone Dialer dialer
095 Power Configuration powercfg.cpl
096 Printers and Faxes control printers
097 Printers Folder printers X
098 Private Character Editor eudcedit
099 Regional and Language Options control international
100 Regional and Language Options intl.cpl I
101 Registry Editor regedit
102 Registry Editor regedt32
103 Remote Access Phonebook rasphone
104 Remote Assistance rcimlby -launchra I
105 Remote Desktop Connection mstsc
106 Removable Storage Console ntmsmgr.msc X
107 Removable Storage Operator Requests ntmsoprq.msc X
108 Resultant Set of Policy (RSOP) rsop.msc
109 Scanners and Cameras sticpl.cpl X
110 Scheduled Tasks control schedtasks
111 Security Center wscui.cpl I
112 Services services.msc
113 Shared Folder Wizard (creating shared folder) shrpubw
114 Shared Folders fsmgmt.msc
115 Shutdown Windows (Appendix-A3) shutdown -s -t 00
116 Sound Recorder sndrec32 X

© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

117 Sounds and Audio mmsys.cpl

118 SQL Client Configuration cliconfg
119 System Configuration Editor sysedit
120 System Configuration Utility msconfig
121 System Information msinfo32
122 System Information winmsd X
123 System Properties sysdm.cpl
124 System Restore restore/rstrui
125 Task Manager taskmgr
126 Telnet Client telnet
127 Telnet Server Admin tlntadmn I
128 User Accounts (Local Users and Groups) control userpasswords
129 User Accounts 2 (Advanced) control userpasswords2
130 User Accounts Management nusrmgr.cpl X
131 Utility Manager utilman
132 Windows Address Book wab I
133 Windows Address Book Import Utility wabmig I
134 Windows Backup Utility ntbackup I
135 Windows Diagnose winmsd X
136 Windows Explorer explorer
137 Windows Firewall firewall.cpl X, I
138 Windows Installer (version checking) msiexec
139 Windows Magnifier magnify
140 Windows Management Infrastructure (WMI) wmimgmt.msc
141 Windows Media Player (WMP) wmplayer
142 Windows Media Player 6.4.09 (old version) mplayer2
143 Windows Messenger msmsgs X, I
144 Windows NetMeeting conf X
145 Windows Picture Acquisition Wizard (needs camera) wiaacmgr
146 Windows Product Activation (WPA) status oobe/msoobe /a X
147 Windows System Security Tool syskey
148 Windows Update Launches (online update) wupdmgr X, I
149 Windows Version Information winver
150 Windows WordPad wordpad
151 Windows Write write
152 Windows XP Registration Wizard (online) regwiz /r X
153 Windows XP Tour Wizard tourstart X
[“System Property” with a specific tab]
154 General control sysdm.cpl,,0
155 Computer Name control sysdm.cpl,,1
156 Hardware control sysdm.cpl,,2
157 Advanced control sysdm.cpl,,3
158 System Restore control sysdm.cpl,,4
159 Automatic Updates control sysdm.cpl,,5
160 Remote control sysdm.cpl,,6
[“Add or Remove Programs” with a specific tab]
161 Change or Remove Programs: control appwiz.cpl
162 Change or Remove Programs: control appwiz.cpl,,0
163 Add new Programs (from CD-ROM/Floppy) control appwiz.cpl,,1
164 Add/Remove Windows Components control appwiz.cpl,,2
165 Set Program Access and Defaults control appwiz.cpl,,3
[“Sound and Audio Device” with a specific tab]
166 Volume control mmsys.cpl,,0
167 Sounds control mmsys.cpl,,1
168 Audio control mmsys.cpl,,2
169 Voice control mmsys.cpl,,3
170 Hardware control mmsys.cpl,,4
[“Desktop Property” with a specific tab]
171 Desktop Property: Themes control desk.cpl
172 Desktop Property: Desktop control desk.cpl,,0
173 Desktop Property: Screen Saver control desk.cpl,,1
174 Desktop Property: Appearance control desk.cpl,,2

© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

175 Desktop Property: Settings control desk.cpl,,3

[“System File Checker” (sfc.exe)utility usage]
178 System File Checker (Purge File Cache) sfc /purgecache X, I
177 System File Checker (Return to Default Setting) sfc /revert X, I
178 System File Checker (Scan immediately) sfc /scannow
179 System File Checker (Scan On every boot) sfc /scanboot X, I
180 System File Checker (Scan Once at next boot) sfc /scanonce X, I
181 System File Checker (Set cache size to x in MB) sfc /cachesize=x X, I
X This Command removed or not available in Vista, Server 2008, Windows 7 and
Windows Server 2008 R2 and higher.
I This feature changed or modified in Vista, Server 2008, Windows 7 and Windows
Server 2008 R2 and higher. Read the other commands for more info. Also see the
APPENDIX-B for “Changed Features and Names”.

RUN Commands in Windows Vista

Table-2: [Applies To: Windows Vista or later i.e. Windows Server 2008, 2008 R2, Windows7 etc.
Refer Table-1, Table-5 and Appendix-B for more info.]
01 Add Hardware Wizard hdwwiz
02 Advanced User Accounts netplwiz
03 Authorization Manager azman.msc
04 BitLocker Notifier fvenotify
05 BitLocker Wizard bitlockerwizard
06 Color Management colorcpl
07 Component Services comexp.msc
08 Computer Management Launcher compmgmtlauncher
09 Connect to a Network Projector netproj
10 Credential Backup and Restore Wizard credwiz
11 Digitizer Calibration Tool tabcal
12 DPI Scaling dpiscaling
13 Ease of Access Center (Accessibility) * sethc
14 Encrypting File System (EFS) rekeywiz
15 Fax Cover Sheet Editor fxscover
16 Firewall Control Panel * firewallcontrolpanel
17 Firewall Settings * firewallsettings
18 Group Policy Management Console * gpmc.msc
19 Hibernation: Disable powercfg /h off
20 Hibernation: Enable powercfg /h on
21 IIS Manager (IIS 6.0 only) # inetmgr6
22 IIS Manager (IIS 7.0) inetmgr
23 Indexing Options control srchadmin.dll
24 Language Pack Installer lpksetup
25 Microsoft iSCSI Initiator iscsicpl
26 Microsoft Support Diagnostic Tool msdt
27 Offline Files control cscui.dll
28 People Near Me p2phost
29 Presentation Settings (Mobile PC) presentationsettings
30 Print Management Console printmanagement.msc
31 Printer Migration printbrmui
32 Problem Reports and Solutions # wercon
33 Programs and Features appwiz.cpl
34 Security Configuration Management secpol.msc
35 Snipping Tool snippingtool
36 Sound Recorder soundrecorder
37 Sound Volume sndvol
38 Sticky Notes stikynot
39 Sync Center mobsync
40 Tablet PC Input Panel tabtip
41 Task Scheduler taskschd.msc

© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

42 Trusted Platform Module (TPM) tpm.msc

43 Trusted Platform Module (TPM) tpminit
44 Windows Activation Client slui
45 Windows Backup and Restore sdclt
46 Windows Calendar * wincal
47 Windows DVD Maker dvdmaker
48 Windows Easy Transfer (WET) migwiz
49 Windows Fax and Scan wfs
50 Windows Features optionalfeatures
51 Windows Journal journal
52 Windows Mail * winmail
53 Windows Mobility Center (Mobile PC) mblctr
54 Windows Remote Assistance msra
55 Windows Sidebar # sidebar
56 Windows Update Application Launcher wuapp
57 Appearance Settings control desk.cpl,appearance@appearance
58 Color Scheme control /name microsoft.personalization
/page pagecolorization
59 Desktop background control /name microsoft.personalization
/page pagewallpaper
60 Display Settings (Screen Resolution) control desk.cpl,settings@settings
61 Folder Options: File extension control /name microsoft.defaultprograms
associations /page pagefileassoc
62 Folder Options: Folder searching rundll32 shell32.dll,options_rundll 2
63 Folder Options: General rundll32 shell32.dll,options_rundll 0
64 Folder Options: View rundll32 shell32.dll,options_rundll 7
65 Multi-monitor control desk.cpl,monitor,@monitor
66 Power Options: Advanced Settings control powercfg.cpl,,3
67 Power Options: Create a power plan control /name microsoft.poweroptions /page
68 Power Options: Edit current plan control /name microsoft.poweroptions /page
settings pageplansettings
69 Power Options: System settings control /name microsoft.poweroptions /page
70 Regional and Language Options: control /name
Administrative microsoft.regionalandlanguageoptions
/page /p:”administrative”
71 Regional and Language Options: control /name
Keyboard microsoft.regionalandlanguageoptions
/page /p:”keyboard”
72 Regional and Language Options: control /name
Location microsoft.regionalandlanguageoptions
/page /p:”location”
73 Screensaver control desk.cpl,screensaver,@screensaver
74 Themes control desk.cpl,themes,@themes
[“Advanced System Property” with a specific tab]
75 Advanced System Settings systempropertiesadvanced
76 Computer Performance Settings systempropertiesperformance
77 Computer Name systempropertiescomputername
78 Data Execution Prevention Settings systempropertiesdataexecutionprevention
79 Hardware Settings systempropertieshardware
80 System Protection Settings systempropertiesprotection
81 System Remote Settings systempropertiesremote
* Command removed or not available in Windows 7 and Windows Server 2008 R2.
# This feature changed or modified in Windows 7 and Windows Server 2008 R2 and
higher. Read the other commands for more info. Also see the APPENDIX-B for “Changed
Features and Names”.

© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

RUN Commands in Windows Server 2008 / 2008 R2

Table-3: [Applies To: Windows Server 2008, Server 2008 R2 or later. These new are also additional
for table-2 and table-3.]
01 Security Configuration Wizard scw
02 Security Configuration Wizard viewer scwviewer
03 Server Manager compmgmtlauncher
04 Share and Storage Management storagemgmt.msc
05 Storage Explorer storexpl.msc
06 Terminal Service Manager tsadmin.msc
07 Terminal Services Configuration tsconfig.msc
08 Windows Firewall with Advanced Security wf.msc
09 Windows Memory Diagnostic Tool mdsched
10 Windows Server Backup wbadmin.msc

RUN Commands in Windows 7

Table-4: [Applies To: Windows 7 or later. These new are also additional for table-3 and table-4.]
01 Action Center wscui.cpl
02 Aero Troubleshooter msdt -id aerodiagnostic
03 ClearType Text Tuner cttune
04 Connect to a Projector displayswitch
05 Desktop Gadget Gallery sidebar /showgadgets
06 Device Manager hdwwiz.cpl
07 Device Pairing Application devicepairingwizard
08 Disk Defragment dfrgui
09 Display Color Calibration dccw
10 Display: Desktop Icon Settings control desk.cpl,,0
11 Display: Personalization control desk.cpl,,2
12 Display: Screen Resolution control desk.cpl
13 Display: Screen Resolution control desk.cpl,,3
14 Display: Screen Resolution control desk.cpl,,4
15 Display: Screen Resolution desk.cpl
16 Display: Screen Saver Settings control desk.cpl,,1
17 Display: Windows Color and Appearance control desk.cpl,,5
18 Event Translator Config Tool evntwin
19 Hardware and Devices Troubleshooter msdt -id devicediagnostic
20 Math Input Panel (for Tablet PC) mip
21 NAP Client Configuration napclcfg.msc
22 Pen and Touch (Tablet PC) tabletpc.cpl
23 People Near Me collab.cpl
24 Performance Monitor Reports perfmon /report
25 Power Options – Energy Report powercfg -energy
26 Problem Steps Recorder psr
27 Program Compatibility Troubleshooter msdt -id pcwdiagnostic
28 Reliability Monitor perfmon /rel
29 Resource Monitor perfmon /res
30 Resource Monitor resmon
31 Restore Files (Advanced) sdclt /foreignrestore
32 Scan Management scanmanagement.msc
33 Services For Network File System nfsmgmt.msc
34 Set Program Access and Computer Defaults computerdefaults
35 System Preparation Tool sysprep/sysprep
36 System Property control system
37 System Repair Disc (create disc) recdisc
38 User Account Control Settings useraccountcontrolsettings
39 Windows Licensing Status slmgr.vbs /dli
40 Windows Anytime Upgrade Results windowsanytimeupgraderesults

© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

41 Windows Easy Transfer Report migwiz/postmig

42 Windows Firewall firewall.cpl
43 Windows Media Center ehome/ehshell
44 Windows Media Player mplayer2
45 Windows PowerShell powershell
46 Windows PowerShell (ISE) powershell_ise
47 Windows Virtual PC vmwindow
48 WMI Control Console wmimgmt.msc
49 XPS Viewer xpsrchvw
01 3D Text Screen Saver sstext3d.scr
02 Blank Screen Saver scrnsave.scr
03 Bubbles Screen Saver bubbles.scr
04 Mystify Screen Saver mystify.scr
05 Photos Screen Saver photoscreensaver.scr
06 Ribbons Screen Saver ribbons.scr

Network RUN Commands

Table-5: [Applies To: Windows 2000, Server 2003 and Server 2008 and also for Windows XP,
Vista, Windows 7, Server 2008 R2 or later. Refer table-3, 4, 5 and Chapter-3 for more info. The
networking features / components must be configured to enable these commands.]
01 Active Directory Domains and Trusts domain.msc
02 Active Directory installation (Directory Service) dcpromo
03 Active Directory Sites and Services dssite.msc
04 Active Directory Users and Computers dsa.msc
05 ADSI Edit adsiedit.msc
06 Certification Authority (CA) certsrv.msc
07 Client Service for Netware nwc.cpl
08 Cluster Administrator cluadmin
09 Component Services dcomcnfg
10 Computer Management Console compmgmt.msc
11 Configure Your Server Wizard cys
12 Connection Manager Administration Kit (CMAK) cmak
13 Distributed File System (DFS) dfsgui.msc
14 Domain Name System (DNS) dnsmgmt.msc
15 Dynamic Host Configuration Protocol (DHCP) dhcpmgmt.msc
16 Event Viewer eventvwr.msc
17 File Server Management filesvr.msc
18 Internet Authentication Service (IAS) ias.msc
19 Internet Information Services (IIS) Manager iis.msc
20 Licensing llsmgr
21 Microsoft SMS (Control Panel Applet) smsrc.cpl
22 Network Load Balancing (NLB) Manager nlbmgr
23 Network Monitor netmon/netmon
24 ODBC Data Source Administrator odbcad32
25 ODBC Data Source Administrator odbccp32.cpl
26 POP3 Service p3server.msc
27 Program Download Monitor (SCCM) smspdm.cpl
28 Remote Desktops Console tsmmc.msc
29 Remote Storage Console rsadmin.msc
30 Routing and Remote Access Console rrasmgmt.msc
31 Run Advertised Programs (SCCM) smarap.cpl
32 Security Configuration Wizard scw
33 Services services.msc
34 Services for Network File System (NFS) nfsmgmt.msc
35 Systems Management (SMS 2003) smscfgrc.cpl
36 Terminal Server Licensing licmgr
37 Terminal Services Configuration tscc.msc
38 Terminal Services Manager tsadmin
39 Web Interface for Remote Administration serverappliance/securelaunch.vbs
40 Windows Deployment Services (WDS) wdsmgmt.msc
41 Windows Deployment Services Legacy risetup

- 10 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

42 WINS winsmgmt.msc
[IP Configuration (ipconfig.exe) usage see (Appendix-A5]
43 IP Config: display all the DHCP Class ID ipconfig /showclassid
44 IP Config: display all the Ipv6 DHCP Class ID ipconfig /showclassid6
45 IP Config: display DNS resolver cache ipconfig /displaydns
46 IP Config: display full configuration information ipconfig /all
47 IP Config: modifies DHCP Class ID ipconfig /setclassid
48 IP Config: modifies the Ipv6 DHCP Class ID ipconfig /setclassid6
49 IP Config: purges the DNS Resolver cache ipconfig /flushdns
50 IP Config: refreshes DHCP & re-registers DNS ipconfig /registerdns
51 IP Config: release Ipv4 address for the adapter ipconfig /release
52 IP Config: release Ipv6 address for the adapter ipconfig /release6
53 IP Config: renew address for all the adapter ipconfig /allcompartments /renew
54 IP Config: renew Ipv4 address for the adapter ipconfig /renew
55 IP Config: renew Ipv6 address for the adapter ipconfig /renew6
56 IP Config: display all adapter Configuration ipconfig /allcompartments /all

Chapter – 2
RUN Commands for Third-party Applications
Table-6: [Applies To: 3rd party applications. These apps must be installed, to make the
commands to work.]
001 7-Zip 7zfm
002 ABBYY FineReader 10 Professional finereader
003 AC97 Audio Configuration alsndmgr.cpl
004 ACDSee Canvas 11 canvas11
006 ACDSee Canvas 12 with GIS plus canvas12
005 ACDSee FotoSlate v4 fotoslate4
007 ACDSee Photo Manager 2008 v10 acdsee10
008 ACDSee Photo Manager 2009 v11 acdsee11
009 ACDSee Photo Manager v12 (2010) acdsee12
010 ACDSee Picture Frame Manager v1 acdseepfm
011 ACDSee Pro v2 (by ACDSee) acdseepro2
012 ACDSee Pro v2.5 acdseepro25
013 ACDSee Pro v3 acdseepro3
014 ACDSee Pro v4 acdseepro4
015 ACDSee Showroom (slideshow) acdseesr
016 Acrobat Distiller (by Adobe) acrodist
018 Adobe Acrobat acrobat
019 Adobe Bridge CS5 bridge
020 Adobe Captivate 5 adobecaptivate
021 Adobe Contribute CS5 contribute
023 Adobe Dreamweaver CS5 dreamweaver
022 Adobe Fireworks CS5 fireworks
024 Adobe Flash Builder v4.0 flashbuilder
025 Adobe Flash Professional CS5 flash
026 Adobe FlashPaper flashprinter
027 Adobe Illustrator CS5 illustrator
017 Adobe ImageReady CS imageready
028 Adobe InDesign CS5 (formerly PageMaker) indesign
029 Adobe LiveCycle Designer formdesigner
030 Adobe PageMaker 6.5 pm65
031 Adobe PageMaker 7 (now InDesign CS) pm70
032 Adobe Photoshop CS5 Extended photoshop
033 Adobe Reader (both x86 and x86) acrord32
034 Alcohol 120% / Alcohol 50% alcohol
035 Apple iTunes (Media Player) itunes
036 Apple QuickTime (by Apple Inc.) quicktimeplayer
037 Apple QuickTime (Control Panel settings) quicktime.cpl
038 Babylon (Dictionary) babylon

- 11 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

039 BitComet bitcomet

040 BS Player Pro bsplayer
041 Calibre - E-book management (by Calibre) calibre
042 CCleaner (by Piriform) ccleaner
043 CodeSmith Explorer codesmith
044 CodeSmith Professional codesmithstudio
045 ConceptDraw Office PRO 8 cdpro8
046 Copernic Desktop Search desktopsearch
047 Corel Presentations X4 (Presentation) prwin14
048 Corel Presentations X5 (Presentation) prwin15
049 Corel Quattro Pro X4 (Spreadsheet)) qpw
050 Corel Quattro Pro X5 (Spreadsheet)) qpw15
051 Corel WordPerfect MAIL (E-mail client) wpmail
052 Corel WordPerfect X4 (Word Processor) wpwin14
053 Corel WordPerfect X5 (Word Processor) wpwin15
054 Corel WordPerfect XML Project Designer (X4) wpldes14
055 Corel WordPerfect XML Project Designer (X5) wpldes15
056 CyberLink LabelPrint labelprint
057 CyberLink Power2Go power2go
058 CyberLink PowerBackup powerbackup
059 CyberLink PowerDVD powerdvd
060 Defraggler (by Piriform) defraggler
061 DELL Webcam Center livecamde
062 DELL Webcam Manager dellwmgr
063 DirectX Control Panel directx.cpl
064 Easy BCD 2 easybcd
065 Eudora (E-mail Client) eudora
066 FastStone Capture fscapture
067 FastStone Image Viewer fsviewer
068 GetRight (Download Manager) getright
069 Google Chrome (browser) chrome
070 IncrediMail 2 (E-mail Client) incmail
071 Intel Graphics and Media Control Panel gfxui
072 Intel Graphics Controller Properties igfxcfg
073 Intel TV Wizard tvwizard2ft
074 InterVideo WinDVD windvd
075 IsoBuster isobuster
076 Java Control Panel (not in Win7) javacpl.cpl
077 LibreOffice (by LibreOffice) soffice
078 LibreOffice Base (Database) sbase
079 LibreOffice Base (Database) soffice -base
080 LibreOffice Calc (Spreadsheet) scalc
081 LibreOffice Calc (Spreadsheet) soffice -calc
082 LibreOffice Draw (Drawing) sdraw
083 LibreOffice Draw (Drawing) soffice -draw
084 LibreOffice Impress (Presentation) simpress
085 LibreOffice Impress (Presentation) soffice -impress
086 LibreOffice Math (Formula) soffice -math
087 LibreOffice Math (MathFormula) smath
088 LibreOffice Writer (Text) soffice -writer
089 LibreOffice Writer (Web Page) soffice -web
090 LibreOffice Writer (Word Processor) swriter
091 Macromedia Fireworks (by Adobe) fireworks
092 Malicious Software Removal Tool (MSRT) mrt
093 Malwarebytes‟ Anti-Malware mbam
094 Media Go (by Sony) mediago
095 Media Player Classic (old version) mplayerc
096 Media Player Classic Home Cinema mpc-hc
097 Microsoft iSCSI Initiator iscsicpl.cpl
098 Microsoft Access msaccess
099 Microsoft ActiveSync wcesmgr
101 Microsoft Application Verifier v4 appverif
102 Microsoft Excel excel
100 Microsoft FrontPage frontpg

- 12 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

103 Microsoft InfoPath infopath

104 Microsoft Office Document Imaging mspview
105 Microsoft Office Groove groove
106 Microsoft Office Picture Manager ois
107 Microsoft OneNote onenote
108 Microsoft Outlook (E-mail client) outlook
109 Microsoft PowerPoint powerpnt
110 Microsoft Publisher mspub
111 Microsoft SharePoint Workspace 2010 groove
112 Microsoft Streets and Trips streets
113 Microsoft Word winword
114 Microsoft Works Calendar wkscal
115 Microsoft Works Database wksdb
116 Microsoft Works Portfolio wkssb
117 Microsoft Works Spreadsheet wksss
118 Microsoft Works Task Launcher msworks
119 Microsoft Works Word Processor wkswp
120 Mozilla Firefox firefox
121 Mozilla Firefox (Safe Mode) firefox -safe-mode
122 Mozilla Sunbird v1 sunbird
123 Mozilla Thunderbird v3.1 thunderbird
124 MPCStar (Media Player) mpcstar
125 MSN Explorer msn6
126 Nero BackItUp (by Nero) backitup
127 Nero Burning ROM nero
128 Nero BurnRights neroburnrights
129 Nero Express nero /w
130 Nero Home nerohome
131 Nero ImageDrive imagedrive
132 Nero MediaHome neromediahome
133 Nero PhotoSnap Viewer photosnapviewer
134 Nero Recode recode
135 Nero Scout neroscoutoptions
136 Nero ShowTime showtime
137 Nero SoundTrax soundtrax
138 Nero Vision nerovision
139 Nero Wave Editor waveedit
140 NitroPDF Professional 6 nitropdf
141 Norton 360 (by Symantec) mainstub
142 Norton Antivirus (Full System Scan) navw32 /a
143 Norton Ghost vproconsole
144 Nview Desktop Manager (NVIDIAnView) nvtuicpl.cpl
145 (by OpenOffice) soffice
146 Base (Database) sbase
147 Base (Database) soffice -base
148 Calc (Spreadsheet) scalc
149 Calc (Spreadsheet) soffice -calc
150 Draw (Drawing) sdraw
151 Draw (Drawing) soffice -draw
152 Impress (Presentation) simpress
153 Impress (Presentation) soffice -impress
154 Math (Formula) soffice -math
155 Math (MathFormula) smath
156 Writer (Text) soffice -writer
157 Writer (Web Page) soffice -web
158 Writer (Word Processor) swriter
159 Oracle SQL Plus sqlplusw
160 OriginPro 8 origin8
161 PerfectDisk Professional (by Raxco) perfectdisk
162 QuarkXPress 8 quarkxpress
163 QuickHeal Internet Security scanner
164 QuickHeal Total Security scanner
165 RealPlayer (also RealPlayer SP) realplay
166 RealPlayer SP Converter realconverter

- 13 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

167 Realtek HD Audio Manager rtsndmgr.cpl

168 Recuva (by Piriform) recuva
169 Revo Uninstaller revouninstaller
170 Revo Uninstaller Pro revouninpro
171 Safari 5 (by Apple Inc.) safari
172 SeaMonkey Mail seamonkey -mail
173 SeaMonkey v2 seamonkey
174 Sony Ericsson PC Companion pccompanion
175 Sony Ericsson PC Suite sepcsuite
176 Speccy (by Piriform) speccys
177 StarOffice (by Oracle) soffice
178 StarOffice Base (Database) sbase
179 StarOffice Calc (Spreadsheet) scalc
180 StarOffice Draw (Drawing) sdraw
181 StarOffice Impress (Presentation) simpress
182 StarOffice Math (formula) smath
183 StarOffice Writer (Word Processor) swriter
184 Tweak UI tweakui
185 Vmware Player vmplayer
186 Vmware Virtual Machine Console vmware -l
187 Vmware Workstation vmware
188 Winamp winamp
189 Windows Intune Malware Protection amui
190 Windows Live Essentials(Appendix-A6) wlstartup
191 Windows Live Family Safety fsui
192 Windows Live Mail (by Microsoft) wlmail
193 Windows Live Mesh wlsync
194 Windows Live Messenger msnmsgr
195 Windows Live Movie Maker 2011 moviemaker
196 Windows Live Photo Gallery 2011 wlxphotogallery
197 Windows Live Writer 2011 windowslivewriter
198 Windows Media Encoder 9 Series wmenc
199 Windows Phone Book Administrator pbadmin
200 Windows PowerToy Calculator powercalc
201 WinRAR winrar
202 WinZip winzip
203 WinZip Self-Extractor wzipse32
204 Wireshark wireshark
205 XPS Viewer EP (Appendix-A7) xpsrchvw
206 AC3 Filter (settings) ac3filter.cpl
207 ACDSee 2009 Showroom (v11) acdseesr
208 ACDSee 2010 Showroom (v12) acdseesr12
209 ACDSee Device Detector devdetect
210 ACDSee Photo Editor 2008 v5 acdseephotoeditor2008
211 ACDSee Photo Editor v4 acdseephotoeditor4
212 ACDSee Picture Frame Manager Quick View acdseeqvpfm
213 ACDSee Pro 4 Quick View acdseeqvpro4
214 Adobe Flash Player 10.3 flashplayercplapp.cpl
215 Calibre E-book viewer ebook-viewer
216 Calibre LRF viewer lrfviewer
217 Change Analysis Diagnostic (WinXP) statechangediag
218 Corel QuickFinder Manager X4 (by Corel) pfim140
219 Corel QuickFinder Manager X5 pfim150
220 Corel QuickFinder Searcher X4 qfinder140
221 Corel QuickFinder Searcher X5 qfinder150
222 Corel WordPerfect Office Conversion Utility convutil
223 Creative Live Cam Avatar ct4im
224 Creative Live Cam Avatar Creator ctiemain
225 Light Scribe Control Panel lightscribecontrolpanel
226 LG Burning Tool (powered by Power2Go) power2goexpress
227 Norton Antivirus 2007 uistub
228 Norton Antivirus 2010: Security History mcui32
229 Norton Antivirus Quarantine Console qconsole

- 14 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

230 Visual Studio Document Explorer dexplore

231 Visual Studio Tools for Applications vsta
232 Windows Live Essentials Language Selecter langselector
233 Windows Live Essentials Repair (2011) wlarp
234 X-Setup Pro xqdcxspstart
[Notes: These commands will work, only if the particular software / applications are installed. All the
listed commands in this table are not separate apps; some commands are relating to the option/sub-
feature for those corresponding apps. The actual command is program.exe, but you can issue the
command with just program and without .exe., LibreOffice, OxygenOffice and
StarOffice all are sharing a common codebases and the applications are similar to each other. Hence
some commands in this list are also identical.]

Control Panel (applets) commands

Table-7: [Applies To: Vista, Server 2008, 2008 R2 and Windows 7. Control Panel applets
commands using canonical name.]
Windows Vista / Windows Server 2008
01 Add Hardware control /name Microsoft.AddHardware
02 Administrative Tools control /name Microsoft.AdministrativeTools
03 Advanced Network Sharing control /name Microsoft.NetworkandSharingCenter /page
Settings Advanced
04 AutoPlay control /name Microsoft.AutoPlay
05 Backup and Restore Center control /name Microsoft.BackupAndRestoreCenter
06 BitLocker Drive Encryption control /name Microsoft.BitlockerDriveEncryption
07 Color Management control /name Microsoft.ColorManagement
08 Date and Time control /name Microsoft.DateAndTime
09 Default Programs control /name Microsoft.DefaultPrograms
10 Device Manager control /name Microsoft.DeviceManager
11 Display control /name Microsoft.Display
12 Ease of Access Center control /name Microsoft.EaseOfAccessCenter
13 Folder Options control /name Microsoft.FolderOptions
14 Fonts control /name Microsoft.Fonts
15 Game Controllers control /name Microsoft.GameControllers
16 Indexing Options control /name Microsoft.IndexingOptions
17 Infrared control /name Microsoft.InfraredOptions
18 Internet Options control /name Microsoft.InternetOptions
19 iSCSI Initiator control /name Microsoft.iSCSIInitiator
20 Keyboard Settings control /name Microsoft.Keyboard
21 Mouse control /name Microsoft.Mouse
22 Network Sharing Center control /name Microsoft.NetworkandSharingCenter
23 Offline Files control /name Microsoft.OfflineFiles
24 Parental Controls control /name Microsoft.ParentalControls
25 Pen and Input Devices control /name Microsoft.PenAndInputDevices
26 People Near Me control /name Microsoft.PeopleNearMe
27 Performance Information and control /name Microsoft.PerformanceInformationAndTools
28 Personalization control /name Microsoft.Personalization
29 Phone and Modems control /name Microsoft.PhoneAndModemsOptions
30 Power Options control /name Microsoft.PowerOptions
31 Printers control /name Microsoft.Printers
32 Problems Reports and control /name Microsoft.ProblemsReportsAndSolutions
33 Programs and Feature control /name Microsoft.ProgramsAndFeature
34 Regional and Language control /name Microsoft.RegionalAndLanguageOptions
35 Scanners and Cameras control /name Microsoft.ScannersAndCameras
36 Sound control /name Microsoft.AudioDevicesAndSoundThemes
37 Speech Recognition Options control /name Microsoft.SpeechRecognitionOptions
38 Sync Center control /name Microsoft.SyncCenter
39 System control /name Microsoft.System
40 Tablets PC Settings control /name Microsoft.TabletsPCSettings
41 Tablets PC Settings Buttons control /name Microsoft.TabletsPCSettings /page Buttons
42 Taskbars and Start Menu control /name Microsoft.TaskbarsAndStartMenu

- 15 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

43 Text to Speech control /name Microsoft.TextToSpeech

44 User Accounts control /name Microsoft.UserAccounts
45 Welcome Center control /name Microsoft.WelcomeCenter
46 Windows Anytime Upgrade control /name Microsoft.WindowsAnytimeUpgrade
47 Windows CardSpace control /name Microsoft.CardSpace
48 Windows Defender control /name Microsoft.WindowsDefender
49 Windows Firewall control /name Microsoft.WindowsFirewall
50 Windows Marketplace control /name Microsoft.GetProgramsOnline
51 Windows Mobility Center control /name Microsoft.MobilityCenter
52 Windows Security Center control /name Microsoft.SecurityCenter
53 Windows Sidebar Properties control /name Microsoft.WindowsSidebarProperties
54 Windows SideShow control /name Microsoft.WindowsSideshow
55 Windows Update control /name Microsoft.WindowsUpdate
Windows 7 / Windows Server 2008 R2
56 Action Center control /name Microsoft.ActionCenter
57 Backup and Restore control /name Microsoft.BackupAndRestore
58 Biometric Devices control /name Microsoft.BiometricDevices
59 Credential Manager control /name Microsoft.CredentialManager
60 Default Location control /name Microsoft.DefaultLocation
61 Desktop Gadgets control /name Microsoft.DesktopGadgets
62 Devices and Printer control /name Microsoft.DevicesAndPrinter
63 Get Programs (online) control /name Microsoft.GetPrograms
64 Getting Started control /name Microsoft.GettingStarted
65 HomeGroup control /name Microsoft.HomeGroup
66 Infrared control /name Microsoft.Infrared
67 Location and Other Sensors control /name Microsoft.LocationAndOtherSensors
68 Notification Area Icons control /name Microsoft.NotificationAreaIcons
69 Pen and Touch control /name Microsoft.PenAndTouch
70 Phone and Modem control /name Microsoft.PhoneAndModem
71 Recovery (Appendix-A8) control /name Microsoft.Recovery
72 Region and Language control /name Microsoft.RegionAndLanguage
73 RemoteApp and Desktop control /name
Connections Microsoft.RemoteAppAndDesktopConnections
74 Sound control /name Microsoft.Sound
75 Speech Recognition control /name Microsoft.SpeechRecognition
76 Taskbar and Start Menu control /name Microsoft.TaskbarAndStartMenu
77 Troubleshooting control /name Microsoft.Troubleshooting

Command-line Tools
Table-8: [Applies To: Windows 2000, XP and Server 2003. Also for Vista, Server 2008, 2008 R2,
Windows 7 and later). To know more about command-line options use /? switch after a command.]
Windows 2000 / XP / Server 2003
001 append Allows programs to open data files in specified directories as if they were in the
current directory.
002 arp Displays and modifies the IP-to-Physical address translation tables used by
address resolution protocol (ARP).
003 at The AT command schedules commands and programs to run on a computer at
a specified time and date. The Schedule service must be running to use the AT
004 atmadm Windows ATM Call Manager Utility.
005 attrib Attribute Utility. Displays or changes file attributes.
006 auditusr Audit User Program. Sets per user auditing policy.
007 bootcfg Boot Config Tool. Modifies the Boot.ini file for boot configuration and recovery.
This command line tool can be used to configure, query, change or delete the
boot entry settings in the BOOT.INI file.
008 blastcln Microsoft Blaster/Nachi removal tool.
009 cacls Control ACLs Program. Displays or modifies access control lists of files.
010 chkdsk Check Disk Utility. Checks a disk for logical file system error and displays a
status report.
011 chkntfs NTFS Volume Maintenance Utility. Displays or modifies the checking of disk at
boot time.
012 cipher File Encryption Utility. Displays or alters the encryption of directories [files] on

- 16 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

NTFS partitions.
013 cmd Windows Command Processor. Performs text-based (command-line) functions.
014 comp File Compare Utility. Compares the contents of two files or sets of files.
015 compact File Compress Utility. Displays or alters the compression of files on NTFS
016 convert File System Conversion Utility. Converts FAT volumes to NTFS.
017 cscript Windows Script Host command line mode.
018 defrag Disk Defragmenter Module. Disk defragmenter commands-line tool.
019 diantz Microsoft Cabinet Maker.
020 diskpart Disk partitioning Application. Manages partitions on hard disk volumes. The
variable device is the device name for a new partition (such as
\device\harddisk0\partition1). The variable size is the size, in megabytes.
021 diskperf Disk Performance Configuration Utility.
022 doskey Keyboard History Utility. Edits command lines, recalls Windows XP commands
and creates macros.
023 driverquery Driver Query. Enables an administrator to enumerate and display the list of
installed device drivers as well as their properties.
024 edlin Edlin. A line-oriented text editor.
025 esentutl Server Database Storage Utilities. Maintenance utilities for Microsoft Windows
026 eventcreate Event Create. This command line tool enables an administrator to create a
custom event ID and message in a specified event log.
027 eventtriggers Event Triggers. This command-line tool enables an administrator to display and
configure “Event Triggers” on local or remote system.
028 exe2bin Converts .EXE (executable) files to binary format.
029 expand LZ Expansion Utility. Microsoft File Expansion Utility. Expands one or more
compressed files. This command is used to retrieve compressed files from
distribution disks.
030 fc DOS 5 File Compare Utility. Compares two files or sets of files and displays the
differences between them.
031 find Searches for a text string in a file or files. If a path is not specified, FIND
searches the text typed at the prompt or piped from another command.
032 findstr Searches for strings in files.
033 finger TCPIP Finger Command. Displays information about a user on a specified
system running the Finger service. Output varies based on the remote system.
034 fltmc Filter Manager Control Program.
035 forcedos Force DOS Execute Utility.
036 fsutil File system management utility.
037 ftp File Transfer Program. Uploads/downloads files on a network. This command
helps you determine whether Application layer functions can work on the
038 getmac Get MAC Address. This command line tool enables an administrator to display
the MAC address for one or more network adapters on a system.
039 gpresult Query RSOP Data. Group Policy Result tool.
040 gpupdate Microsoft Group Policy Refresh Utility. Refreshes Policy settings.
041 help Command Line Help Utility for Windows XP commands.
042 ipconfig IP Configuration Utility. Shows the IP configuration of network adapters installed
in a computer. From the results of this command, you can determine whether
you have incorrectly addressed the adapter or the default gateway or whether
the adapter was unable to obtain an address from the DHCP server. Use the /all
switch to show all IP configuration information.
043 ipsec6 IPv6 Security Configuration Utility. (Not for Windows 7 or later).
044 ipv6 IPv6 Configuration Utility. (Not for Windows 7 or later).
045 ipxroute NWLink IPX Routing and Source Routing Control Program.
046 label Disk Label Utility. Creates, changes, or deletes the volume label of a disk.
047 lodctr Updates Performance Monitor counter names and explain text for an extensible
048 logman Logman manages the “Performance Logs and Alerts” service for creating and
managing Event Trace, Session logs and Performance logs.
049 logoff Session Logoff Utility.
050 lpd TCP/IP Lpq Command. Displays the state of a remote lpd queue.
051 lpr TCP/IP Lpr Command. Sends a print job to a network printer. Executes a print
job on a network printer.
052 makecab Microsoft Cabinet Maker.
053 mmcperf MMC Performance Tool.

- 17 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

054 mountvol Mount Volume Utility. Creates, deletes, or lists a volume mount point.
055 mqbkup Windows NT, Microsoft Message Queue (MSMQ) Backup/Restore Utility.
056 mrinfo Multicast Information.
057 msg Message Utility. Send a message to a user.
058 nbtstat TCP/IP NetBIOS Information. Displays protocol statistics and current TCP/IP
connections using NBT (NetBIOS over TCP/IP). Similar to netstat, except that it
resolves NetBIOS names to IP addresses.
059 net Windows net Command.
060 netsh Network Shell Command. Network Services shell Command. (See Chapter-3)
061 netstat TCP/IP Netstat Command. Displays protocol statistics and current TCP/IP
network connections. Displays Transmission Control Protocol/Internet Protocol
(TCP/IP) connections and protocol statistics.
062 nlsfunc Loads country-specific information.
063 nslookup Show and configure DNS information and settings. Checks DNS entries.
064 openfiles Enables an administrator to list or disconnect files and folders that have been
opened on a system.
065 pathping TCP/IP PathPing Command.
066 ping TCP/IP Ping Command. Uses an echo command to establish whether packets
can be routed at the Network layer on a network.
067 ping6 Ipv6 Ping Command. (Not for Windows 7 or later).
068 powercfg Power Settings Command-Line Tool. This command line tool enables an
administrator to control the power settings on a system.
069 print Prints a text file.
070 proxycfg Microsoft WinHTTP Default Proxy Configuration Tool.
071 qappsrv Query Terminal Server Utility. Displays the available application terminal servers
on the network.
072 qprocess Query Process Utility. Displays information about processes.
073 qwinsta Display information about Terminal Sessions.
074 rasdial Remote Access Client Side Command Line Dial UI.
075 rcp Copies files to and from computer running the RCP service.
076 recover Recover Files Utility. Recovers readable information from a bad or defective
077 reg Registry Console Tool. Console Registry Tool for Windows.
078 regsvr32 Microsoft Register Server. This command-line tool registers .dll files as
command components in the registry.
079 regwiz Windows XP Registration Wizard. Use /r switch to register Windows.
080 relog Relog creates new performance logs from data in existing performance logs by
changing the sampling rate and/or converting the file format. Supports all
performance log formats, including Windows NT 4.0 compressed logs.
081 replace Replace File Utility. Replaces files.
082 reset Terminal Services Reset Utility.
083 rexec TCP/IP Remote Exec Command. Runs commands on remote hosts running the
REXEC service. Rexec authenticates the user name on the remote host before
executing the specified command.
084 route Manipulates network routing tables.
085 rsm Removable Storage Manager Command Line Interface.
086 runas Run As Utility.
087 rwinsta Reset Session Utility. Reset the session subsystem hardware and software to
known initial values.
088 sc A tool to aid in developing services for Windows NT. SC is a command line
program used for communicating with the NT Service Controller and services.
089 schtasks Schedule Tasks. Enables an administrator to create, delete, query, change, run
and end scheduled tasks on a local or remote system. Replaces at.exe.
090 secedit Windows Security Configuration Editor Command Tool.
091 setver Sets the version number that MS-DOS report to a program.
092 sfc Windows XP Windows File Checker. Scans all protected system files and
replaces incorrect versions with correct Microsoft versions.
093 shadow Monitor another Terminal Services session.
094 shutdown Windows Remote Shutdown Tool.
095 sort Sort Utility.
096 subst Associates a path with a drive letter.
097 systeminfo System Information. This command line tool enables an administrator to query
for basic system configuration information.
098 taskkill Kill Process. This command line tool can be used to end one or more processes.
Processes can be killed by the process id or image name.

- 18 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

099 tasklist This command line tool displays a list of application(s) and associated
task(s)/process(es) currently running on either a local or remote system.
100 telnet Microsoft Telnet Client. Establishes a character-based session with a Telnet
server across a network. This command helps you determine whether Session
layer functions can work on a network.
101 tftp Trivial File Transfer Protocol App. Transfers files to and from a remote computer
running the TFTP service.
102 tlntadmn Telnet Administration. Telnet Server Admin Tool.
103 tracerpt Event Trace Report Tool. Tracerpt processes binary Event Trace Session log
files or real-time streams from instrumented Event Trace providers and creates a
report or a text (CSV) file describing the events generated.
104 tracert TCP/IP Traceroute Command. Shows all the routing hops that a packet takes to
reach a destination on a network.
105 tracert6 Ipv6 Traceroute Command. (Not for Windows 7 or later).
106 tscon Session Connection Utility. Attaches a user session to a terminal session.
107 tsdiscon Session Disconnection Utility. Disconnects a terminal session.
108 tskill Terminal Services End Process Utility. Ends a process.
109 tsshutdn System Shutdown Utility. Shut down a server in a controlled manner.
110 typeperf Command line performance monitor. Typeperf writes performance data to the
command window or to a log file. To stop Typeperf, press CTRL+C.
111 tzchange Time zone change tool. A command Line utility to make time zone changes.
112 unlodctr Unload PerfMon Counters. Removes counter names and explain text for the
specified extensible counter.
113 vssadmin Command Line Interface for Microsoft Volume Shadow Copy Service.
114 w32tm Windows Time Service Diagnostic Tool.
115 winmsd System Information. Replaced by msinfo32.exe.
116 winver Windows Version Checking Tool.
117 wscript Windows Script Host GUI mode.
118 xcopy Copies files and directory trees.

Command-line Tools
Table-9: [Applies To: Vista, Windows Server 2008, 2008 R2 and Windows 7. These new are also
additional for table-8.]
Windows Vista /Server 2008 / 2008 R2 /Windows 7
01 auditpol Configure, create, backup and restore audit policies on any computer in the
organization from the command line with verbose logging. Replaces auditusr.exe.
02 bcdboot Used to initialize the Boot Configuration Data (BCD) store and copy boot
environment files to the system partition.
03 bcdedit Edit the Boot Configuration Data Store.
04 bitsadmin BITS administration utility.
05 change Change terminal server settings for logons, COM port mappings and install mode.
06 chglogon Enable or disable session logons.
07 chgport List or change COM port mappings for DOS application compatibility.
08 chgusr Change install mode.
09 choice Allow users to select one item from a list of choices and return the index of the
selected choice.
10 clip Redirect the output of command-line tools to the Windows Clipboard.
11 cmdkey Create, display, and delete stored user names and passwords.
12 diskpart Expanded to support hard disks with the GUID Partition Table, and a new “shrink”
command has been added which facilitates shrinking a pre-existing NTFS
13 diskraid Launch the diskraid application.
14 dispdiag Display diagnostics information.
15 forfiles Select a file (or files) and execute a command on that file.
16 icacls Display or modify access control lists (ACLs) of files; an updated version of cacls.
17 iscsicli The Microsoft iSCSI Initiator.
18 isoburn Windows Disc Image Burning Tool.
19 manage-bde Used to manage BitLocker encrypted volumes.
20 mklink Create, modify and delete junctions, hard links, and symbolic links.
21 muiunattend The MUI Unattended Action.
22 netcfg The WinPE Network Installer.
23 ocsetup The Windows Optional Component Setup.

- 19 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

24 pkgmgr The Windows Package Manager.

25 pnpunattend Used for unattended online driver installation.
26 pnputil PnPUtil Tool. The Microsoft Plug and Play (PnP) Utility.
27 query Query command. Syntax {Process|Session|TermServer|User}.
28 quser Display information about users logged on to the system.
29 robocopy The Robust File Copy for Windows tool. To copy/move files or folders from one
volume to another while allowing them to retain their permissions.
30 rpcping Ping a server using Remote Procedure Call (RPC).
31 sdbinst Application Compatibility Database Installer tool.
32 setx Create or modify environment variables in the user or system environment.
33 sxstrace The WinSxs tracing utility.
34 takeown Recover access to a file that was denied by reassigning file ownership.
35 timeout Accept a timeout parameter to wait for the specified time period or until any key is
36 tracerpt The TraceRpt tool.
37 tzutil Windows Time Zone Utility.
38 verifier Driver Verifier Monitor. The driver verification tool.
39 waitfor Sends, or waits for, a signal on a system. When /S is not specified, the signal will
be broadcasted to all the systems in a domain. If /S is specified, then the signal
will be sent only to the specified system.
40 wbadmin Start the backup tool.
41 wceutil The Windows Event Collector Utility.
42 wevtutil The Windows Event command-line Utility.
43 where Display the location of files that match the search pattern.
44 whoami Retrieve user name and group information, along with the respective security
identifiers (SIDs), privileges, logon identifier (logon ID) for the current user
(access token) on the local system, i.e. the current logged on user. If no switch is
specified, the tool displays the user name in NTLM format (domain\username).
45 winrm The Windows Remote Management tool (WinRM).
46 winrs Windows Remote Shell (WinRS) allows establishing secure Windows Remote
Management sessions to multiple remote computers from a single console.
47 winsat The Windows System Assessment tool.

- 20 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

PART – 1 (Advance users)

[Applies To: Advance users and power users.]

Chapter –3
Advance rundll32 Commands
Table-10: [Notes: Internal Windows commands based on the rundll32.exe file, to run the specific
Option / Action / Feature.]
Windows 2000 / XP / Server 2003
01 Accessibility Options
rundll32 shell32.dll,Control_RunDLL access.cpl
02 Add/Remove Programs: (Change or Remove Programs)
rundll32 shell32.dll,Control_RunDLL appwiz.cpl,,0
03 Add/Remove Programs: (Add New Programs)
rundll32 shell32.dll,Control_RunDLL appwiz.cpl,,1
04 Add/Remove Programs: (Add/Remove Windows Components)
rundll32 shell32.dll,Control_RunDLL appwiz.cpl,,2
05 Add/Remove Programs: (Set Programs Access and Defaults) *
rundll32 shell32.dll,Control_RunDLL appwiz.cpl,,3
06 Desktop Property: Themes Tab
rundll32 shell32.dll,Control_RunDLL desk.cpl
07 Desktop Property: Desktop Tab
rundll32 shell32.dll,Control_RunDLL desk.cpl,,0
08 Desktop Property: Screen Saver Tab
rundll32 shell32.dll,Control_RunDLL desk.cpl,,1
09 Desktop Property: Appearance Tab
rundll32 shell32.dll,Control_RunDLL desk.cpl,,2
10 Desktop Property: Settings Tab
rundll32 shell32.dll,Control_RunDLL desk.cpl,,3
11 Device Manager
rundll32 devmgr.dll DeviceManager_Execute
12 Folder Options
rundll32 shell32.dll,Options_RunDLL
13 Forgotten Password Wizard(Create a password reset disk)
rundll32 keymgr.dll,PRShowSaveWizardExW
14 Game Controller
rundll32 Shell32.dll,Control_RunDLL joy.cpl
15 Hibernate
rundll32 powrprof.dll,SetSuspendState
16 IE –Content Advisor
rundll32 msrating.dll,RatingSetupUI
17 Control Panel
rundll32 shell32.dll,Control_RunDLL
18 IE –Delete All (Browsing History – IE7 or later)
rundll32 InetCpl.cpl,ClearMyTracksByProcess 255
19 IE –Delete Cookies
rundll32 InetCpl.cpl,ClearMyTracksByProcess 2
20 IE –Delete Form Data
rundll32 InetCpl.cpl,ClearMyTracksByProcess 16
21 IE –Delete Files and Settings Stored by Add-Ons
rundll32 InetCpl.cpl,ClearMyTracksByProcess 4351
22 IE –Delete History
rundll32 InetCpl.cpl,ClearMyTracksByProcess 1
23 IE –Delete Passwords
rundll32 InetCpl.cpl,ClearMyTracksByProcess 32
24 IE –Delete Temporary Internet Files
rundll32 InetCpl.cpl,ClearMyTracksByProcess 8
25 Lock Screen (Lock Computer)
rundll32 user32.dll,LockWorkStation
26 Map Network Drives
rundll32 Shell32.dll,SHHelpShortcuts_RunDLL Connect

- 21 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

27 Mouse Properties Dialog Box: Buttons tab

rundll32 Shell32.dll,Control_RunDLL main.cpl @0,0
28 Mouse Properties Dialog Box: Pointers tab
rundll32 Shell32.dll,Control_RunDLL main.cpl @0,1
29 Mouse Properties Dialog Box: Pointers Options tab
rundll32 Shell32.dll,Control_RunDLL main.cpl @0,2
30 Mouse Properties Dialog Box: Wheel tab
rundll32 Shell32.dll,Control_RunDLL main.cpl @0,3
31 Mouse Properties Dialog Box: Hardware tab
rundll32 Shell32.dll,Control_RunDLL main.cpl @0,4
32 Mouse Button: Changing Left-to-Right and vice versa
rundll32 User32.dll,SwapMouseButton
33 Network Connections
rundll32 shell32.dll,Control_RunDLL ncpa.cpl
34 Network Setup Wizard (i.e. network / internet / VPN)
rundll32 hnetwiz.dll,HomeNetWizardRunDll
35 New Connections Wizard
rundll32 netshell.dll,StartNCW
36 Organize Favorites
rundll32 shdocvw.dll,DoOrganizeFavDlg
37 Phone and Modem options
rundll32 Shell32.dll,Control_RunDLL telephon.cpl
38 Power Options
rundll32 Shell32.dll,Control_RunDLL powercfg.cpl
39 Printer and Faxes folder
rundll32 Shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder
40 Regional and Language Options: Regional Options tab
rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,0
41 Regional and Language Options: Languages tab
rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,1
42 Regional and Language Options: Advanced tab
rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,2
43 Safely Remove Hardware
rundll32 Shell32.dll,Control_RunDLL HotPlug.dll
44 Sound and Audio Device Properties: Volume tab
rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,0
45 Sound and Audio Device Properties: Sounds tab
rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,1
46 Sound and Audio Device Properties: Audio tab
rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,2
47 Sound and Audio Device Properties: Voice tab
rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,3
48 Sound and Audio Device Properties: Hardware tab
rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,4
49 Stored Username and Passwords
rundll32 keymgr.dll,KRShowKeyMgr
50 System Properties: General tab
rundll32 shell32.dll,Control_RunDLL sysdm.cpl
51 System Properties: Computer Name tab
rundll32 Shell32.dll,Control_RunDLL Sysdm.cpl,,1
52 System Properties: Hardware tab
rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,2
53 System Properties: Advanced tab
rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,3
54 System Properties: System Restore tab
rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,4
55 System Properties: Automatic Updates tab
rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,5
56 System Properties: Remote tab
rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,6
57 System Properties: Performance (Visual Effects)
rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,-1
58 Taskbar Properties
rundll32 shell32.dll,Options_RunDLL 1
59 Time and Date

- 22 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

rundll32 Shell32.dll,Control_RunDLL timedate.cpl

60 User Accounts
rundll32 shell32.dll,Control_RunDLL nusrmgr.cpl
61 Windows Firewall
rundll32 shell32.dll,Control_RunDLL firewall.cpl
62 Windows Fonts folder
rundll32 Shell32.dll,SHHelpShortcuts_RunDLL FontsFolder
63 Wireless Network Setup Wizard
rundll32 wzcdlg.dll,FlashConfigCreateNetwork
64 Wireless Network Setup Wizard
rundll32 shell32.dll,Control_RunDLL NetSetup.cpl,@0,WNSW
65 Windows Security Center
rundll32 shell32.dll,Control_RunDLL wscui.cpl
66 Windows Update
rundll32 Shell32.dll,Control_RunDLL wuaucpl.cpl
Internet Explorer 8(deleting IE data)
67 IE –Delete All Browsing History
rundll32 InetCpl.cpl,ClearMyTracksByProcess 255
68 IE –Delete Cookies
rundll32 InetCpl.cpl,ClearMyTracksByProcess 258
69 IE –Delete Form Data
rundll32 InetCpl.cpl,ClearMyTracksByProcess 272
70 IE –Delete History
rundll32 InetCpl.cpl,ClearMyTracksByProcess 449
71 IE –Delete InPrivate Data
rundll32 InetCpl.cpl,ClearMyTracksByProcess 2304
72 IE –Delete Passwords
rundll32 InetCpl.cpl,ClearMyTracksByProcess 288
73 IE –Delete Temporary Internet Files
rundll32 InetCpl.cpl,ClearMyTracksByProcess 264
74 IE – Preserve Favorite Website Data
rundll32 InetCpl.cpl,ClearMyTracksByProcess 8448
Windows Vista / Server 2008 / 2008 R2 / Windows 7
75 Add/Remove Programs: (Programs and Features)
rundll32 shell32.dll,Control_RunDLL appwiz.cpl,,0
76 Add/Remove Programs: (Turn Windows Features On or Off)
rundll32 shell32.dll,Control_RunDLL appwiz.cpl,,2
77 Add/Remove Programs: (Set Programs Access and Computer Defaults)
rundll32 shell32.dll,Control_RunDLL appwiz.cpl,,3
78 Desktop Property: Desktop Icons tab
rundll32 shell32.dll,Control_RunDLL desk.cpl,,0
79 Desktop Property: Screen Saver Settings tab
rundll32 shell32.dll,Control_RunDLL desk.cpl,,1
80 Desktop Property: Appearance Settings (Win7: Personalization)
rundll32 shell32.dll,Control_RunDLL desk.cpl,,2
81 Desktop Property: Monitor Settings (Win7: Screen Resolution)
rundll32 shell32.dll,Control_RunDLL desk.cpl,,3
82 Device Installation Settings
rundll32 newdev.dll,DeviceInternetSettingUi
83 Environment Variables
rundll32 sysdm.cpl,EditEnvironmentVariables
84 Folder Options: Folder searching tab
rundll32 shell32.dll,options_rundll 2
85 Folder Options: General tab
rundll32 shell32.dll,options_rundll 0
86 Folder Options: View tab
rundll32 shell32.dll,options_rundll 7
87 Mouse Properties Dialog Box: Buttons tab
rundll32 Shell32.dll,Control_RunDLL main.cpl @0,0
88 Mouse Properties Dialog Box: Pointers tab
rundll32 Shell32.dll,Control_RunDLL main.cpl @0,1
89 Mouse Properties Dialog Box: Pointers Options tab
rundll32 Shell32.dll,Control_RunDLL main.cpl @0,2
90 Mouse Properties Dialog Box: Wheel tab
rundll32 Shell32.dll,Control_RunDLL main.cpl @0,3

- 23 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

91 Mouse Properties Dialog Box: Hardware tab

rundll32 Shell32.dll,Control_RunDLL main.cpl @0,4
92 Offline Files
rundll32 Shell32.dll,Control_RunDLL cscui.dll
93 Printer and Faxes folder (Win7: Printers)
rundll32 Shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder
94 Regional and Language Options: Format Options tab
rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,0
95 Regional and Language Options: Location tab
rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,1
96 Regional and Language Options: Keyboard and Language tab
rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,2
97 Regional and Language Options: Administrative tab
rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,2
98 Set a printer as Default
rundll32 printui.dll,PrintUIEntry /y /n printer_name
(change printer_name to correct printer name e.g. PDFCreator)
99 Sound and Audio Device Properties: Playback tab (Win7)
rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,0
100 Sound and Audio Device Properties: Recording tab (Win7)
rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,1
101 Sound and Audio Device Properties: Sounds tab (Win7)
rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,2
102 Sound and Audio Device Properties: Communications tab (Win7)
rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,3
103 Stored Username and Passwords (Win7: Credential Manager)
rundll32 keymgr.dll,KRShowKeyMgr
104 System Properties: Computer Name Tab
rundll32 shell32.dll,Control_RunDLL sysdm.cpl
105 System Properties: Hardware tab
rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,2
106 System Properties: Advance tab
runDll32 shell32.dll,Control_RunDLL sysdm.cpl,,3
107 System Properties: System Protection tab
rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,4
108 System Properties: Remote tab
rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,5
109 User Profiles
rundll32 sysdm.cpl,EditUserProfiles
110 Windows Network Diagnostics
rundll32 ndfapi,NdfRunDllDiagnoseIncident
111 Windows Security Center (Win7: Action Center)
rundll32 shell32.dll,Control_RunDLL wscui.cpl
Notes: * This feature not available in Windows Server 2003.

Netsh Commands
For Administrators: netsh (The Network Services shell) is a command-line scripting utility
that allows you to, either locally or remotely, display or modify the network configuration of a currently
running computer. When you run netsh from the Cmd.exe command prompt, netsh uses the following
syntax. Used without parameters, netsh opens the Netsh.exe command prompt (that is, netsh>).
[Notes: Netsh Syntax - for backward compatibility, you can use netsh interface ip in place of netsh
interface ipv4. For IPv6 Netsh commands, you must specify IPv6. Note also for static settings, the
interface name is simply local area connection. The syntax name="local area connection” is acceptable
but not necessary. For dynamic configuration you need to use name="local area connection”.]
netsh [-a AliasFile] [-c Context] [-r RemoteComputer] [{NetshCommand|-f ScriptFile}]
-a :Returns you to the netsh prompt after running AliasFile.
AliasFile :Specifies the name of the text file that contains one or more netsh commands.
-c :Changes to the specified netsh context.
Context :Specifies the netsh context. The following table lists the available netsh contexts.
Example commands:
To display all of the adapters in the computer with their current IP addresses:

- 24 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

netsh interface ip show config

To change to a static address, type the following command:
netsh interface ip set address "Local Area Connection" static ipaddr subnetmask gateway metric
netsh interface ip set address "Local Area Connection" static 1
To switch the specified adapter from a static address to DHCP:
netsh interface ip set address "Local Area Connection" dhcp
Install / Uninstall TCP/IP protocol (Appendix-A4)
Ipv4: install:
netsh interface ipv4 install
Ipv4: uninstall:
netsh interface ipv4 uninstall
Ipv6: install:
netsh interface ipv6 install
Ipv6: uninstall:
netsh interface ipv6 uninstall
Network Interface
To disable an interface:
netsh interface set interface name="Local Area Connection" admin=DISABLED
To enable an interface:
netsh interface set interface name="Local Area Connection" admin=ENABLED
To rename an interface:
netsh interface set interface name="local area connection" newname="LAN"
IPv4 (Vista, Server 2008 or higher)
Configure IPv4 address, subnetmask, and gateway for the interface
Local Area Connection:
netsh interface IPv4 set address "local area connection" static
Set DNS server address as
netsh interface ipv4 set dnsservers "local area connection" static
Configure an interface to obtain IP address automatically (Dynamic IP):
netsh interface ipv4 set address name="local area connection" source=dhcp
netsh interface ipv4 set dnsservers name="local area connection" source=dhcp
To reset the IPv4 configurations of an interface to default:
netsh interface ipv4 reset
IPv6 (Vista, Server 2008 or higher)
To display IPv6 configuration and interface IDs:
netsh interface ipv6 show address
To display IPv6 configuration and Site IDs:
netsh interface ipv6 show address level=verbose
To check the content of neighbor cache:
netsh interface ipv6 show neighbors
To flush neighbor cache:
netsh interface ipv6 delete neighbors
To check the IPv6 address of default router interface on local subnet:
netsh interface ipv6 show route
To display the current content of destination cache:
netsh interface ipv6 show destinationcache
To flush destination cache:
netsh interface ipv6 delete destinationcache
To set static IPv6 address fec0:0:0:fffe::a to interface:
netsh interface ipv6 set address “Local Area Connection” fec0:0:0:fffe::a
To reset the IPv6 configurations of an interface to default:
netsh interface ipv6 reset
Windows Firewall with Advanced Security (WFAS) (Windows 7 or higher)
To permit ICMPv4 and enable ping to other IPv4 hosts:
netsh advfirewall firewall add rule name="ICMPv4" protocol=icmpv4:any,any dir=in action=allow
To permit ICMPv6 and enable ping to other IPv6 hosts:
netsh advfirewall firewall add rule name="ICMPv6" protocol=icmpv6:any,any dir=in action=allow
To reset Firewall to default configuration:
netsh advfirewall reset
Wireless Configurations (XP, Vista or higher)
To show the available Wireless interfaces (connections):

- 25 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

netsh wlan show interfaces

To connect to a wireless network (profile name = default):
netsh wlan connect name=default
To connect to a wireless network (profile name = default, SSID = mynetwork):
netsh wlan connect name=default SSID=mynetwork
To disconnect a current wireless network:
netsh wlan disconnect
To disconnect a wireless interface named “Wireless Network Connection”:
netsh wlan disconnect interface=“Wireless Network Connection”
To disconnect wireless network from all interfaces:
netsh wlan disconnect interface=*
BranchCache Configurations (Windows 7 or higher)
[Notes: BranchCache service must be started before configuring BranchCache.]
To setting up BranchCache to distributed mode:
netsh branchcache set service mode=distributed
To setting up BranchCache to local cache mode:
netsh branchcache set service mode=local
To setting up BranchCache to Hosted Cache mode:
netsh branchcache set service mode=hostedclient location=hostedserver(FQDN of hosted server)
To see BranchCache Status:
netsh branchcache show status
To know BranchCache cache:
netsh branchcache show localcache
To disable BranchCache:
netshbranchcache set service disabled
To reset BranchCache:
netsh branchcache reset
DirectAccess Configurations (Windows 7 or higher)
To verifythe DirectAccessclient’s settings for 6to4:
netsh interface 6to4 show relay
To verifythe DirectAccess Teredo configuration:
netsh interface IPv6 show teredo
To verifythe DirectAccess configuration for IP-HTTPS:
netsh interface httpstunnel show interface
Reset your network & Winsock settings (WinXP or higher)
[Notes: Issue commands one by one]
netsh winsock reset
netsh winsock reset catalog
netsh interface ip reset C:\Interface-resetlog.txt
netsh interface reset all
netsh firewall reset

Relative System Paths

Table-11: [Applies To: All versions of Windows. Environment Variable and shell commands are
complementary. These are helpful to find location of data and may be used in installer / making SFX
packages on NT platforms. These are useful when you are compiling / packaging your apps with
installer software.]
System Defaults (Windows 32-bit / x86)
SL. Directory Location Environment Variable (Command)
01 Common Program Files %CommonProgramFiles%
02 Current System Drive %HOMEDRIVE%
03 Current System Drive %SYSTEMDRIVE%
04 Current User Location %HOMEDRIVE%\%HOMEPATH%
05 Current User Location %HOMEPATH%
06 Dllcache dllcache
07 Font Folder Fonts
08 INF Directory inf
09 Prefetch Folder Prefetch
10 Program Files %PROGRAMFILES%
11 System32 %SYSTEMROOT%\system32
12 System32 %WINDIR%\System32
13 Windows %SYSTEMROOT%
14 Windows %WINDIR%
For All Users
15 All Users Location %ALLUSERSPROFILE%

- 26 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

16 Common AppData %ALLUSERSPROFILE%\Application Data

17 Common Desktop %ALLUSERSPROFILE%\Desktop
18 Common Documents %ALLUSERSPROFILE%\Documents
19 Common Favorites %ALLUSERSPROFILE%\Favorites
20 Common Programs %ALLUSERSPROFILE%\Start Menu\Programs
21 Common Start Menu %ALLUSERSPROFILE%\Start Menu
22 Common Startup %ALLUSERSPROFILE%\Start
23 Common Templates %ALLUSERSPROFILE%\Templates
For Current User
24 AppData %AppData%
25 AppData %USERPROFILE%\Application Data
26 AppData Application Data
27 Cache %USERPROFILE%\Local Settings\Temporary
Internet Files
28 Cookies %USERPROFILE%\Cookies
29 Cookies Cookies
30 Current User Location %USERPROFILE%
31 Desktop %USERPROFILE%\Desktop
32 Desktop Desktop
33 Favorites %USERPROFILE%\Favorites
34 Favorites Favorites
35 History %USERPROFILE%\Local Settings\History
36 Local AppData %USERPROFILE%\Local Settings\Application Data
37 Local Settings %USERPROFILE%\Local Settings
38 My Pictures %USERPROFILE%\My Documents\My Pictures
39 NetHood %USERPROFILE%\NetHood
40 NetHood NetHood
41 Personal Documents %USERPROFILE%\My Documents
42 Personal Documents My Documents
43 PrintHood %USERPROFILE%\PrintHood
44 PrintHood PrintHood
45 Programs %USERPROFILE%\Start Menu\Programs
46 Recent %USERPROFILE%\Recent
47 Recent Recent
48 Send To %USERPROFILE%\SendTo
49 Send To sendto
50 Start Menu %USERPROFILE%\Start Menu
51 Start Menu Start Menu
52 Startup %USERPROFILE%\Start Menu\Programs\Startup
53 Temp %TEMP%
54 Temp %TMP%
55 Templates %USERPROFILE%\Templates
56 Templates Templates
Windows 64-bit / x64
57 Program Files %ProgramFiles64%
58 Program Files %ProgramW6432%
59 Program Files (x86) %ProgramFiles32%
60 Program Files (x86) %ProgramFiles32%
61 program files (x86)\common files %CommonProgramFiles%
62 program files (x86)\common files %CommonProgramFiles(x86)%
63 program files\common files %CommonProgramW6432%
Shell Commands
System Defaults
SL. Directory Location Command
01 Font Folder shell:fonts
02 Internet Explorer shell:internetfolder
03 Recycle Bin shell:recyclebinfolder
04 System32 shell:system
05 Windows shell:windows
For All Users
06 Common AppData shell:common appdata
07 Common Documents shell:common documents

- 27 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

08 Common Favorites shell:common favorites

09 Common Music shell:commonmusic
10 Common Pictures shell:commonpictures
11 Common Programs shell:common programs
12 Common Start Menu shell:common start menu
13 Common Startup shell:common startup
14 Common Templates shell:common templates
15 Common Videos shell:commonvideo
For Current User
16 AppData shell:appdata
17 Cache shell:cache
18 CD Burning shell:cd burning
19 Cookies shell:cookies
20 Desktop shell:desktop
21 Favorites shell:favorites
22 My Music shell:my music
23 My Pictures shell:my pictures
24 My Videos shell:my video
25 NetHood shell:nethood
26 Personal Documents shell:personal
27 PrintHood shell:printhood
28 Profile shell:profile
29 Programs shell:programs
30 Recent shell:recent
31 Send To shell:sendto
32 Start Menu shell:start menu
33 Startup shell:startup
34 Templates shell:templates

Environment Variables
Environment variables are strings that contain information such as drive, path, or file name.
They control the behavior of various programs. For example, the TEMP environment variable specifies
the location in which programs place temporary files. Any user can add, modify, or remove a user
environment variable. However, only an administrator can add, modify or remove a system environment
Using System in Control Panel, you can customize the following variables:
1. User management Environment Variables for logged_on_user_name: The user environment
variables are different for each user of a particular computer. The variables include any that are set
by the user, as well as any variables defined by programs, such as the path to the location of the
program files.
2. System path Environment Variables: Administrators can change or add environment variables
that apply to the system, and thus to all system users. During installation, Windows Setup
configures the default system variables, such as the path to the Windows files.
3. Discrete value Environment Variable: These are generally expanded to discrete values, such as
the current working directory, the current date, or a random number. Some of these are true
environment variable and will be expanded by all functions that handle environment variables.
These variables are not case sensitive.
Table-12: [[Applies To: All versions of Windows. These commands are for admin purposes, advanced
usersand may not launch from command prompt / RUN.]
User management Environment Variables
Sl. Environment Variable USAGES
01 %ALLUSERSPROFILE% In XP: C:\Documents and Settings\All Users
In Vista: C:\ProgramData
02 %APPDATA% Contains the full path to the Application Data folder of the
logged-in user. In XP: C:\Documents and
Settings\{username}\Application Data
In Vista: C:\Users\{username}\AppData\Roaming
03 %HOMEPATH% In XP: C:\Documents and Settings\{username}
In Vista: C:\Users\{username}
04 %LOGONSERVER% This variable Indicates the domain controller or the server
that authenticated the client‟s logon request.
05 %TEMP% In XP: C:\Documents and Settings\{username}\Local

- 28 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

In Vista: C:\Users\{username}\AppData\Local\Temp
06 %TMP% In XP: C:\Documents and Settings\{username}\Local
In Vista: C:\Users\{username}\AppData\Local\Temp
07 %USERDOMAIN% The variable holds the name of the Workgroup or
Windows Domain to which the current user belongs.
08 %USERNAME% {Username}. This variable is to determine the active user‟s
login identification.
09 %USERPROFILE% In XP: C:\Documents and Settings\{username}
In Vista: C:\Users\{username}
System path Environment Variables
10 %APPDATA% Contains the full path to the Application Data folder of the
logged-in user. In XP: C:\Documents and
Settings\{username}\Application Data
In Vista: C:\Users\{username}\AppData\Roaming
11 %CMDEXTVERSION% This variable shows the version number of the current
Command Processor Extensions. In Windows NT the
value is “1”. In Windows 2000 and XP the value is “2”.
12 %COMMONPROGRAMFILES% Usually: C:\Program Files\Common Files
13 %COMMONPROGRAMFILES(X86)% The default in Vista is: C:\Program Files (x86)\Common
14 %COMPUTERNAME% {Computername} The NetBIOS name of the computer.
15 %COMSPEC% Starts a new instance of the Windows XP command
interpreter. C:\Windows\System32\cmd.exe
16 %HOMEDRIVE% The drive where Windows is installed. Usually it is C:\
17 %HOMEPATH% In XP: C:\Documents and Settings\{username}
In Vista: C:\Users\{username}
18 %HOMESHARE% The network path to the user‟s home directory. Shared
Home Directory (for example “\\server\share”). If the home
directory is a local path, it will return a null value.
19 %NUMBER_OF_PROCESSORS% Quantity of CPUs installed in the system.
20 %OS% For Windows NT „family‟ it is “Windows_NT”
21 %PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32
\Wbem;{plus program paths}
23 %PROCESSOR_ARCHITECTURE% Indicates the chip architecture of the CPU e.g. x86 or x64.
24 %PROGRAMFILES% This variable point to Program Files directory, which stores
the entire installed program within Windows and other
installed apps. The default is C:\Program Files.
25 %PROGRAMFILES(X86)% In 64-bit editions of Windows (XP, 2003, Vista etc.), this is
C:\Program Files (x86)
26 %PROGRAMW6432% In 64-bit editions of Windows (XP, 2003, Vista etc.), this is
C:\Program Files
27 %PROMPT% Code for current command prompt format. Code is usually
28 %PUBLIC% Only for Vista or later. The default is: C:\Users\Public
29 %SYSTEMDRIVE% The drive where Windows is installed. Usually it is C:\
30 %SYSTEMROOT% The default is: C:\Windowsand in Windows NT 3.1,
Windows NT 4 and Windows 2000: C:\WINNT
31 %USERDNSDOMAIN% The fully qualified DNS domain (FQDN) that the currently
logged on user‟s account belongs to.
32 %USERDOMAIN% Name of the domain that contains the user‟s account.
33 %WINDIR% The default is: C:\Windowsand in Windows NT 3.1,
Windows NT 4 and Windows 2000: C:\WINNT
Discrete value Environment Variable
34 %CD% Current directory with its full path
35 %DATE% Current date in the format determined by the Date
36 %ERRORLEVEL% This variable points to the current error level. If there was
an error in the previous command, this is what you need to
check against to find out about that. Number defining exit
status of a previous command or program.
37 %RANDOM% Random number between 0 and 32767.
38 %TIME% This point to the current time. Current time in the format

- 29 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

determined by the Time command. The time is displayed

according to the current user‟s time format preferences.

Environment Variables: Windows XP Embedded (with SP2)

Table-13: [Predefined System Environment Variables for Windows XP Embedded SP2 Feature Pack
2007. The list of environment variables provided in the Windows Embedded Studio tools displays each
variable with its corresponding path on the development system, not the target system, and the two are
not necessarily the same. The following table shows the environment variables listed in Target Designer
and Component Designer and resulting path on the target system. Source:]
Windows XP Embedded SP2 (with Feature Pack 2007)
Sl. Environment Path Example (Location)
01 %10% Windows C:\Windows
02 %11% System32 C:\Windows\system32
03 %12% Drivers C:\Windows\system32\drivers
04 %17% Inf C:\Windows\inf
05 %18% Help C:\Windows\Help
06 %20% Fonts C:\Windows\Fonts
07 %21% Viewers C:\Windows\system32\viewers
08 %23% Color C:\Windows\system32\spool\drivers\color
09 %24% Apps C:\
10 %25% Shared C:\Windows
11 %30% Boot C:\
12 %50% System16 C:\Windows\system
13 %51% Spool C:\Windows\system32\spool
14 %52% Spool drivers C:\Windows\system32\spool\drivers\w32x86
15 %53% Userprofile C:\Documents and Settings\username
16 %54% Loader C:\
17 %55% Printprocessor C:\Windows\system32\spool\Prtprocs\w32x86
18 %16406% All Users\Start Menu C:\Documents and Settings\All Users\Start
19 %16407% All Users\Start C:\Documents and Settings\All Users\Start
Menu\Programs Menu\Programs
20 %16408% All Users\Start C:\Documents and Settings\All Users\Start
Menu\Programs\Startup Menu\Programs\Startup
21 %16409% All Users\Desktop C:\Documents and Settings\All
22 %16415% All Users\Favorites C:\Documents and Settings\All
23 %16419% All Users\Application C:\Documents and Settings\All
Data Users\Application Data
24 %16422% Program Files C:\Program Files
25 %16425% System32 on RISC C:\Windows\system32
26 %16426% Program Files on RISC C:\Program Files
27 %16427% Program Files\Common C:\Program Files\Common
28 %16428% x86 Program C:\Program Files\Common
Files\Common on
29 %16429% All Users\Templates C:\Documents and Settings\All Users\Templates
30 %16430% All Users\Documents C:\Documents and Settings\All Users\Documents
31 %16437% All Users\Documents\My C:\Documents and Settings\All
Music Users\Documents\My Music
32 %16438% All Users\Documents\My C:\Documents and Settings\All
Pictures Users\Documents\My Pictures

Chapter – 4
Recovery Console Commands
Table-14: [Applies To: Windows 2000, XP and Server 2003. Recovery Console is not available on
Vista or higher. Refer Appendix-A]

- 30 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011



[Notes: See above table for rest of the command in the above table.]
Batch: executes commands that you specify in the text file, Inputfile. Output file holds the output of the
commands. If you omit the Output file parameter, output appears on the screen.
CD (Chdir): operates only in the system directories of the current Windows installation, removable
media, the root directory of any hard disk partition, or the local installation sources.
Chkdsk: The /p switch runs Chkdsk even if the drive is not flagged as dirty. The /r switch locates bad
sectors and recovers readable information. This switch implies /p. Chkdsk requires Autochk. Chkdsk
automatically looks for Autochk.exe in the startup folder. If Chkdsk cannot find the file in the startup
folder, it looks for the Windows Setup CD-ROM. If Chkdsk cannot find the installation CD-ROM, Chkdsk
prompts the user for the location of Autochk.exe.
Copy: copies one file to a target location. By default, the target cannot be removable media, and you
cannot use wildcard characters. Copying a compressed file from the Windows 2000 Setup CD-ROM
automatically decompresses the file.
Del (Delete): deletes one file. Operates within the system directories of the current Windows installation,
removable media, the root directory of any hard disk partition, or the local installation sources. By
default, you cannot use wildcard characters.
Dir: displays a list of all files, including hidden and system files.
Disable: disables a Windows system service or driver. The variable service_or_driver is the name of the
service or driver that you want to disable. When you use this command to disable a service, the
command displays the service‟s original startup type before it changes the type to
SERVICE_DISABLED. Note the original startup type so that you can use the enable command to
restart the service.
Enable: enables a Windows system service or driver. The variable service_or_driver is the name of the
service or driver that you want to enable, and start_type is the startup type for an enabled service. The
startup type uses one of the following formats:
Exit: quits the Recovery Console, and then restarts the computer.
Expand: expands a compressed file. The variable source is the file that you want to expand. By default,
you cannot use wildcard characters. The variable destination is the directory for the new file. By default,
the destination cannot be removable media and cannot be read-only. You can use the attrib command
to remove the read-only attribute from the destination directory. The option /f:filespec is required if the
source contains more than one file. This option permits wildcard characters. The /y switch disables the
overwrite confirmation prompt.
Fixboot: writes a new startup sector on the system partition.
Fixmbr: repairs the startup partition‟s master boot code. The variable device is an optional name that
specifies the device that requires a new Master Boot Record. Omit this variable when the target is the
startup device.
Format: formats a disk. The /q switch performs a quick format. The /fs switch specifies the file system.
Help: If you do not use the command variable to specify a command, help lists all the commands that
the Recovery Console supports.
Listsvc: displays all available services and drivers on the computer.
Logon: displays detected installations of Windows and requests the local Administrator password for
those installations. Use this command to move to another installation or subdirectory.
Map: displays currently active device mappings. Include the arc option to specify the use of Advanced
RISC Computing (ARC) paths (the format for Boot.ini) instead of Windows device paths.
MD (Mkdir): operates only within the system directories of the current Windows installation, removable
media, the root directory of any hard disk partition, or the local installation sources.
More/Type: displays the specified text file on screen.
Rd (Rmdir): operates only within the system directories of the current Windows installation, removable
media, the root directory of any hard disk partition, or the local installation sources.
Ren (Rename): operates only within the system directories of the current Windows installation,
removable media, the root directory of any hard disk partition, or the local installation sources. You
cannot specify a new drive or path as the target.
Set: displays and sets the Recovery Console environment variables.
Systemroot: sets the current directory to %SystemRoot%.

Miscellaneous Commands
GUID Commands (through RUN):

- 31 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

Table-15: [Applies To: Windows XP or later. Here the GUID (Globally Unique Identifier) command
uses the Windows Shell to execute a task. All these commands may not work always. To create
shortcut using these commands in this table refer Apendix-A10 and B.]
SL. Control Panel Applets/ GUID / COMMAND CODE
01 Folder Options shell:::{6dfd7c5c-2451-11d3-a299-00c04f8ef6af}
02 My Computer shell:::{20d04fe0-3aea-1069-a2d8-08002b30309d}
03 My Documents shell:::{450d8fba-ad25-11d0-98a8-0800361b1103}
04 My Network Places shell:::{208d2c60-3aea-1069-a2d7-08002b30309d}
05 Network Connections shell:::{7007acc7-3202-11d1-aad2-00805fc1270e}
06 Printers and Faxes shell:::{2227a280-3aea-1069-a2de-08002b30309d}
07 Recycle Bin shell:::{645ff040-5081-101b-9f08-00aa002f954e}
08 Scheduled Tasks shell:::{d6277990-4c6a-11cf-8d87-00aa0060f5bf}
09 Web Browser (Default) shell:::{871c5380-42a0-1069-a2ea-08002b30309d}
10 Action Center shell:::{bb64f8a7-bee7-4e1a-ab8d-7d8273f7fdb6}
11 Add Hardware shell:::{7a979262-40ce-46ff-aeee-7884ac3b6136}
12 Administrative Tools shell:::{d20ea4e1-3957-11d2-a40b-0c5020524153}
13 AutoPlay shell:::{9c60de1e-e5fc-40f4-a487-460851a8d915}
14 Backup and Restore shell:::{b98a2bea-7d42-4558-8bd1-832f41bac6fd}
15 Biometrics Devices shell:::{0142e4d0-fb7a-11dc-ba4a-000ffe7ab428}
16 BitLocker Drive Encryption shell:::{d9ef8727-cac2-4e60-809e-86f80a666c91}
17 Color Management shell:::{b2c761c6-29bc-4f19-9251-e6195265baf1}
18 Computer shell:::{20d04fe0-3aea-1069-a2d8-08002b30309d}
19 Control Panel: Category view shell:::{26ee0668-a00a-44d7-9371-beb064c98683}

20 Control Panel: Complete list shell:::{ed7ba470-8e54-465e-825c-99712043e01c}

21 Control Panel: Icon view shell:::{21ec2020-3aea-1069-a2dd-08002b30309d}
22 Credential Manager shell:::{1206f5f1-0569-412c-8fec-3204630dfb70}
23 Date and Time shell:::{e2e7934b-dce5-43c4-9576-7fe4f75e7480}
24 Default Location shell:::{00c6d95f-329c-409a-81d7-c46c66ea7f33}
25 Default Programs shell:::{17cd9488-1228-4b2f-88ce-4298e93e0966}
26 Desktop Gadgets shell:::{37efd44d-ef8d-41b1-940d-96973a50e9e0}
27 Device Manager shell:::{74246bfc-4c96-11d0-abef-0020af6b0b7a}
28 Devices and Printers shell:::{a8a91a66-3a7d-4424-8d24-04e180695c7a}
29 Display shell:::{c555438b-3c23-4769-a71f-b6d3d9b6053a}
30 Documents shell:::{450d8fba-ad25-11d0-98a8-0800361b1103}
31 Ease of Access Center shell:::{d555645e-d4f8-4c29-a827-d93c859c4f2a}
32 Folder Options shell:::{6dfd7c5c-2451-11d3-a299-00c04f8ef6af}
33 Fonts shell:::{93412589-74d4-4e4e-ad0e-e0cb621440fd}
34 Game Controllers shell:::{259ef4b1-e6c9-4176-b574-481532c9bce8}
35 Get Programs (online) shell:::{15eae92e-f17a-4431-9f28-805e482dafd4}
36 Getting Started shell:::{cb1b7f8c-c50a-4176-b604-9e24dee8d4d1}
37 HomeGroup shell:::{67ca7650-96e6-4fdd-bb43-a8e774f73a57}
38 Indexing Options shell:::{87d66a43-7b11-4a28-9811-c86ee395acf7}
39 Infrared shell:::{a0275511-0e86-4eca-97c2-ecd8f1221d08}
40 Internet Options shell:::{a3dd4f92-658a-410f-84fd-6fbbbef2fffe}
41 iSCSI Initiator shell:::{a304259d-52b8-4526-8b1a-a1d6cecc8243}
42 Keyboard shell:::{725be8f7-668e-4c7b-8f90-46bdb0936430}
43 Location and Other Sensors shell:::{e9950154-c418-419e-a90a-20c5287ae24b}
44 Manage Wireless Networks shell:::{1fa9085f-25a2-489b-85d4-86326eedcd87}
45 Mouse shell:::{6c8eec18-8d75-41b2-a177-8831d59d2d50}
46 Network and Sharing Center shell:::{8e908fc9-becc-40f6-915b-f4ca0e70d03d}
47 Network Connections shell:::{7007acc7-3202-11d1-aad2-00805fc1270e}
48 Network Places shell:::{208d2c60-3aea-1069-a2d7-08002b30309d}
49 Notification Area Icons shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}
50 Offline Files shell:::{d24f75aa-4f2b-4d07-a3c4-469b3d9030c4}
51 Parental Controls shell:::{96ae8d84-a250-4520-95a5-a47a7e3c548b}
52 Pen and Touch shell:::{f82df8f7-8b9f-442e-a48c-818ea735ff9b}
53 People Near Me shell:::{5224f545-a443-4859-ba23-7b5a95bdc8ef}
54 Performance Information and shell:::{78f3955e-3b90-4184-bd14-5397c15f1efc}

- 32 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

55 Personalization shell:::{ed834ed6-4b5a-4bfe-8f11-a626dcb6a921}
56 Phone and Modem shell:::{40419485-c444-4567-851a-2dd7bfa1684d}
57 Power Options shell:::{025a5937-a6be-4686-a844-36fe4bec8b6d}
58 Printers shell:::{2227a280-3aea-1069-a2de-08002b30309d}
59 Problem Reports and shell:::{fcfeecae-ee1b-4849-ae50-685dcf7717ec}
60 Programs and Features shell:::{7b81be6a-ce2b-4676-a29e-eb907a5126c5}
61 Recovery shell:::{9fe63afd-59cf-4419-9775-abcc3849f861}
62 Recycle Bin shell:::{645ff040-5081-101b-9f08-00aa002f954e}
63 Region and Language shell:::{62d8ed13-c9d0-4ce8-a914-47dd628fb1b0}
64 RemoteApp and Desktop shell:::{241d7c96-f8bf-4f85-b01f-e2b043341a4b}
65 Scanners and Cameras shell:::{00f2886f-cd64-4fc9-8ec5-30ef6cdbe8c3}
66 Sound shell:::{f2ddfc82-8f12-4cdd-b7dc-d4fe1425aa4d}
67 Speech Recognition shell:::{58e3c745-d971-4081-9034-86e34b30836a}
68 Sync Center shell:::{9c73f5e5-7ae7-4e32-a8e8-8d23b85255bf}
69 System shell:::{bb06c0e4-d293-4f75-8a90-cb05b6477eee}
70 Tablet PC Settings shell:::{80f3f1d5-feca-45f3-bc32-752c152e456e}
71 Taskbar and Start Menu shell:::{0df44eaa-ff21-4412-828e-260a8728e7f1}
72 Text to Speech shell:::{d17d1d6d-cc3f-4815-8fe3-607e7d5d10b3}
73 Troubleshooting shell:::{c58c4893-3be0-4b45-abb5-a63e4b8c8651}
74 User Accounts shell:::{60632754-c523-4b62-b45c-4172da012619}
75 Web Browser (Default) shell:::{871c5380-42a0-1069-a2ea-08002b30309d}
76 Windows Anytime Upgrade shell:::{be122a0e-4503-11da-8bde-f66bad1e3f3a}
77 Windows CardSpace shell:::{78cb147a-98ea-4aa6-b0df-c8681f69341c}
78 Windows Defender shell:::{d8559eb9-20c0-410e-beda-7ed416aecc2a}
79 Windows Firewall shell:::{4026492f-2f69-46b8-b9bf-5654fc07e423}
80 Windows Marketplace shell:::{3e7efb4c-faf1-453d-89eb-56026875ef90}
81 Windows Mobility Center shell:::{5ea4f148-308c-46d7-98a9-49041b1dd468}
82 Windows Security Center shell:::{087da31b-0dd3-4537-8e23-64a18591f88b}
83 Windows SideShow shell:::{e95a4861-d57a-4be1-ad0f-35267e261739}
84 Windows Update shell:::{36eef7db-88ad-4e81-ad49-0e313f0c35f8}
Tips: To create shortcuts using the above GUID in Windows 7, create a new folder and rename the
folder like this: for “Control Panel - Full” rename a folder in Windows 7 with the following:

Unique and Special Commands

Current User Location .
Documents and Settings ..
Users ..
My Computer …
System Partition \
Selective Windows Startup options: loading win.ini win.ini
Selective Windows Startup options: loading system.ini system.ini

More Commands
[Notes: These commands can be used to opening / doing a specific task or to create a shortcut for
frequent use. Use Command Prompt for these commands.]
Locking Computer (Workstation):
%WinDir%\system32\rundll32 user32.dll, LockWorkStation
Hibernating Computer:
%WinDir%\System32\rundll32 PowrProf.dll, SetSuspendState
Notes: Hibernate option must be enabled in the “Power Options” from Control Panel. Otherwise the
system will go to standby mode.
Shutdown Computer:
Abort Shutdown: %SystemRoot%\System32\shutdown -a
Log Off: %SystemRoot%\System32\shutdown -s -t 00
Restart: %SystemRoot%\System32\shutdown -r -f -t 00
Shutdown: %SystemRoot%\System32\shutdown -s -f -t 00
Notes: Replace 00 preferably with any two digit number. For more see Apendix-A3.
Add or Remove Programs with specific tab:
Change or Remove Programs: %SystemRoot%\system32\control appwiz.cpl,,0
Add New Programs (CD-ROM/Floppy): %SystemRoot%\system32\control appwiz.cpl,,1
Add/Remove Windows Components: %SystemRoot%\system32\control appwiz.cpl,,2
Set Program Access and Defaults: %SystemRoot%\system32\control appwiz.cpl,,3

- 33 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

Device Manager:
%SystemRoot%\System32\mmc %SystemRoot%\system32\devmgmt.msc
Computer Management:
%WinDir%\system32\mmc /s %WinDir%\system32\compmgmt.msc
IP Configuration:
%SystemRoot%\system32\cmd /k %SystemRoot%\system32\ipconfig /all
Microsoft Update:
%SystemRoot%\system32\rundll32 %SystemRoot%\system32\muweb.dll,LaunchMUSite
Map Network Drive:
net use Z: \\computername\network_share
Notes: Z: is the drive letter for the mapped network drive, it starts in descending order i.e. from Z to A.
Directory List Printing
Dir /A:D /B /O:G /S>filename.txt
Control Panel in Windows XP (GUID command):
Program Compatibility Wizard (WinXP)
HelpCtr -FromHCP -url hcp://system/compatctr/compatmode.htm
Restoring “Show Desktop” icon in Quick Launch (WinXP / 2K3)
regsvr32 /i:u shell32
Detailed Windows Licensing Status:
slmgr.vbs /dlv
IPv4 and IPv6 Route table:
route print
netstat -r
Checking which folders are shared:
net share
Manually check for and install Windows updates (Vista or higher):
wuauclt /detectnow
Display signed drivers:
driverquery /si
Devices configured to wake up computer from sleep:
powercfg -devicequery wake_armed
Uninstalling a Service Pack:
Creating an EFS recovery agent (Windows 7 or higher):
cipher /r:recoveryagent
Backing up EFS Certificate (Windows 7 or higher):
cipher /x
Updating Group Policy manually:
gpupdate /force
Checking the version of JAVA installed:
Java -version

1. RUN box: Press the “Windows Logo” button and then press “R”, or go to “Start Menu” and
click “RUN”, to open “RUN” dialog box. Then type these commands in the RUN box and press
Enter to open an application.
2. Running Disk Cleanup for all drives:
Disk Cleanup Settings: cleanmgr /sageset:99
Automatic Cleanup: cleanmgr /sagerun:99
[Notes: Always check settings before “Automatic Cleanup”.]
3. Shutdown Actions:
Abort Shutdown: shutdown -a
Log Off: shutdown -s -t 00
Restart: shutdown -r -f -t 00
Shutdown: shutdown -s -f -t 00
GUI Interface: shutdown -i
[Notes: For these options (flags) in Vista or higher use/ (forward slash) instead of - (dash).]
4. TCP/IP: In Windows XP / Windows Server 2003, IPv4 protocol is the core networking protocol.
You can‟t uninstall it. But you can install/uninstall IPv6 protocol. In Windows Vista / Windows
Server 2008 or higher, IPv6 protocol is the core networking protocol. You can‟t uninstall it. But
you can install/uninstall IPv4 protocol.

- 34 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

5. The /allcompartmentsswitch: If you use the /allcompartments switch after the Ipconfig
command, you can apply the command universally across all interfaces; for example, ipconfig
/allcompartments /all or ipconfig /allcompartments /renew.
6. Windows Live Essentials: Windows Live Essentials 2011 (Wave 4, version 15 or higher) and
its components can run only on Windows Vista and Windows 7 or later. For Windows XP use
Windows Live Essential (Wave 3, version 14). Windows Live Essential can‟t be installed on
Windows Server 2003 / Server 2008 / 2008 R2.
7. XPS Viewer: “XPS Essentials Pack” or “XPS Viewer EP” is a standalone application from
Microsoft to view and create XPS formats. Also you can view XPS documents in Internet
Explorer if “.NET Framework 3.0” or higher isinstalled.
8. Recovery: For Vista, Server 2008, Windows 7 or higher, Recovery Console is not available
(as previously with Windows 2000 / XP / Server 2003). This is replaced by various advance
recovery options. You can use commands to diagnose and troubleshoot the OS related issues
through booting with a recovery disk or by a Windows DVD in recovery mode. Use the
following commands:
Restore System files and Settings: srtrui.exe
Windows Complete PC Restore: bmrui.exe
Windows DISM Capture: dwscapture.exe
For Windows 7 / Server 2008 R2 (not for Vista) you don‟t need to boot from Windows DVD to
use system recovery functions. Press F8 before windows start up and select Repair Your
Computer options from the “Advance Boot Options” menu, to get into System Recovery
Options. You only need the “Windows Installation Disc” or “System Repair Disc” only when
you can‟t boot windows or when you get the error “Bootmgr is missing”.
9. RUN AS: This command line tool enables you to run programs using the credential of another
user. This feature has been improved in Windows 7 as Run As Administrator in the graphical
mode. In the command line mode this tool has also some extended functions in Windows 7.
10. Command Tips (Create shortcut): Many commands in this ebook can be used for executing
a task or configuring system settings. The commands can be run from RUN box or commands
prompt. If you want to use the particular command frequently then you can make a shortcut
and place it on the Desktop / Start Menu for an easy use of it. If you find problem with the some
commands (mentioned in this ebook) in Windows Vista or higher then use / (forward slash)
instead of - (dash) for the options in a particular command.
To create a shortcut for program: right-click on the desktop click New > Shortcut. In the
location type / paste the command and click Next, then type a proper title / name for that
program and click finish. To create shortcut for the GUID commands add the word “shell:”
before that command if that word is not present in that command and paste in the location
11. Creating Command for Programs:
You can make your own commands too. If you want to launch a program from RUN or from
command prompt. Follow these steps:
Create a shortcut for a program. Name the shortcut anything as you wish. Don‟t name this
same to windows commands, otherwise this will not work.
Copy it to the “%windows%\system32” folder. Then open RUN box, type in the name and
press Enter.
12. Running Recovery Console:
Insert the Windows XP startup disk into the floppy disk drive, or insert the Windows XP
CD-ROM into the CD-ROM drive, and then restart the computer.
Press any key to start the computer from the CD-ROM drive if you are prompted.
When the “Welcome to Setup” screen appears, press R to start the Recovery Console.
If you have a dual-boot or multiple-boot computer, select the installation that you must
access from the Recovery Console.
When you are prompted, type the Administrator password. Or ENTER for blank password.
At the command prompt, type the appropriate commands to diagnose and repair your
Windows XP installation. For a list of commands that are available in Recovery Console,
type recoveries console commands or help and pressENTER.
For information about a specific command, type help command name at the command
prompt and then press ENTER.
To exit the Recovery Console and restart the computer, issue exit command.
How to install the Recovery Console
Insert the Windows XP CD into the CD-ROM drive. Click Start, and click RUN. Then type
x:\i386\winnt32 /cmdcons where x is the drive letter for the CD-ROM drive.

- 35 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

A Windows Setup Dialog Box appears. The Windows Setup Dialog Box describes the
Recovery Console option. To confirm the installation, click Yes.
Restart the computer. The next time that you start your computer, “Microsoft Windows
Recovery Console” appears on the startup menu.
Notes: Always use Windows XP Professional Service Pack 3 CD to Install the Recovery
Console and to avoid any error - refer to: KB898594.
13. MMC: Microsoft Management Console (MMC) snap-ins can be opened with the default
consoles (.msc extension) installed with Windows. You can create custom console file, save it
in the system32 folder and can open from command prompt or from RUN. When saving the
console the file name should be unique, without space and must not conflict with other
windows files or commands. You can open console snap-ins in two ways:
Example: Device manager
Commands: devmgmt.msc or mmc devmgmt.msc
14. Creating custom Command for an App:
Open Registry Editor (from Start Menu > RUN and type regedit then press Enter):
Go to the location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\
Create a new Key and name it as per exact executable file name of your app (example
“windbg.exe" file for "Debugging Tools for Windows (x86)"). Remember to add .exe in the
key name. The key name must be same as the app's executable name to avoid confusion.
Then in the right pane change the value of the default string value named as "Default", to
the address of the app's installation folder. The app's address must be direct and not be
with environment variables. Example: C:\Program Files\Debugging Tools for Windows
And create another new string named “Path” and changed the value to the location of the
app. Example: C:\Program Files\Debugging Tools for Windows (x86)\
Then close registry editor and issue the command in the RUN. These commands may not
be executed from Command Prompt.
15. RUN vs. Command Prompt: RUN: It is used to execute some of the Windows functions and
features. These commands are based on environment variables and Windows registry. Also
some MS-DOS commands can be executed from RUN box.
Command Prompt: Command Prompt also called Windows Command Processor is the
stripped down version of earlier MS-DOS operating system for Windows environment. The
commands are mostly same as MS-DOS commands or derived from it. Many Windows
functions and tools are integrated with Command Prompt for better usability. You have to open
the Command Prompt with administrator credential to execute commands.
16. Rules in this Ebook
All commands in this ebook are case sensitive, although many are written with
multiple cases.Making shortcuts: Many of these commands can be used for creating shortcuts.
For command usage use /? Switch after a command.
Short forms: App = Application, Apps = Applications, IE= Internet Explorer, WinME =
Windows ME, 2K = Windows 2000, 2K3 = Windows Server 2003, XP or WinXP = Windows XP,
Win7 = Windows 7, Vista = Windows Vista, 2K8 = Windows Server 2008, %WinDir% =
%SystemRoot%, rundll32 = rundll32.exe, rundll32 = %SystemRoot%\system32\rundll32.exe.
Abbreviations: ACL: Access Control List, ADSI: Active Directory Services Interfaces, COM:
Component Object Model, DCOM: Distributed Component Object Model, SMS: System
Management Server, DPI: Dots per inch, IIS: Internet Information Services, iSCSI: Internet
Small Computer System Interface, ISE: Integrated Scripting Environment, XPS: XML Paper
Specification, ATM: Asynchronous Transfer Mode, MDT: Microsoft Deployment Toolkit, WIM:
Windows Imaging Format, VHD: Virtual Hard Disk, WET: Windows Easy Transfer, SCCM:
System Center Configuration Manager, BITS: Background Intelligent Transfer Service, MAC:
Media Access Control, TFTP: Trivial File Transfer Protocol, FQDN: Fully Qualified Domain
Name, ODBC: Open Database Connectivity, SCCM: System Center Configuration Manager,
WDS: Windows Deployment Service.
Notes: For more abbreviations go to:
17. Windows Deployment Tools: DISM.exe, Diskpart, imagex.exe, MAP, MDT 2010, SCCM 2007,
sysprep.exe, Windows SIM, WET, Windows PE, WIM image, USMT, VHD, VHD boot,
Windows 7 Upgrade Advisor etc.
18. Commonly Used Command-line Tools
Attrib, chkdsk, convert, dir, expand, gpupdate, ipconfig, net, netsh, nslookup, ping, regedit, sfc,
shutdown, telnet, tracert etc.
FEW TOOLS [See table-9 and table-10 for more commands.]

- 36 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

pushd Stores the current directory for use by the POPD command and then changes to the specified
PUSHD [path | ..]
path Specifies the directory to make the current directory.
Notes: If Command Extensions are enabled the PUSHD command accepts network paths in addition to
the normal drive letter and path. If a network path is specified, PUSHD will create a temporary drive
letter that points to that specified network resource and then change the current drive and directory,
using the newly defined drive letter. Temporary drive letters are allocated from Z: on down, using the
first unused drive letter found.
popd Changes to the directory stored by the PUSHD command.
Notes: If Command Extensions are enabled the POPD command will delete any temporary drive letter
created by PUSHD when you POPD that drive off the pushed directory stack.
regsvr32 This command-line tool registers .dll files as command components in the registry.
regsvr32 [/u] [/s] [/n] [/i[:cmdline]] dllname
/u Unregisters server.
/s Specifies regsvr32 to run silently and to not display any message boxes.
/n Specifies not to call DllRegisterServer. You must use this option with /i.
/i:cmdline Calls DllInstall passing it an optional [cmdline]. When used with /u, it calls dll uninstall.
dllname Specifies the name of the dll file that will be registered.
Examples: To register the .dll for the Compressed Folder, type: regsvr32 zipfldr.dll

Table-16: [Applies To: Vista, Server 2008, 2008 R2, Windows 7 and other Microsoft
01 Backup and Restore Center NTBackup (Windows Backup Utility)
02 Computer My Computer
03 Credential Manager Stored User Names and Passwords
04 Documents My Documents
05 Ease of Access Center Accessibility Options
06 Getting Started or Welcome Center Windows XPTour
07 Music My Music
08 Network Discovery Protocol (NDP) Computer Browser
09 Network Places My Network Places
10 Pictures My Pictures
11 Programs and Features Add or Remove Programs
12 Recent Documents My Recent Documents
13 Recovery Recovery Console
14 Region and Language Regional Settings
15 Reliability and Performance Monitor Performance Monitor
16 Run As / Run As Administrator Run As
17 Security Configuration Management Local Security Settings
18 Subsystem for Unix-based Applications Windows Services for Unix
19 Superfetch Prefetch
20 Sync Center Microsoft Synchronization Manager
21 System Integrity Check and Repair System File Checker (SFC)
22 System Protection System Restore
23 Task Scheduler Scheduled Tasks
24 Users Documents and Settings
25 Videos My Videos
26 Windows Complete PC Restore Automated System Recovery (ASR)
27 Windows Contacts Address Book
28 Windows Deployment Services (WDS) Remote Installation Services (RIS)

- 37 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

29 Windows Easy Transfer (WET) Files and Setting Transfer Wizard

30 Windows Error Reporting (WER) Error Reporting
31 Windows Live Messenger Windows Messenger
32 Windows Mail Outlook Express
33 Windows Meeting Space NetMeeting
34 Windows Photo Gallery Windows Picture and Fax Viewer
35 Windows Remote Assistance Remote Assistance
36 Windows Resource Protection (WRP) Windows File Protection (WFP)
37 Action Center Problem Reports and Solutions
38 Action Center Windows Security Center
39 Backup and Restore Backup and Restore Center
40 Deployment Image Servicing and pkgmgr.exe, peimg.exe, intlcfg.exe
Management (DISM.exe)
41 Desktop Gadgets Windows Sidebar
42 Devices And Printers Printers
43 Get Programs (Online) Windows Marketplace
44 Getting Started Welcome Center
45 Kernel Patch Protection (KPP) PatchGuard
46 Networks Network Places
47 Pen and Touch Pen and Input Devices
48 Region and Language Regional and Language Options
49 System Image Backup Complete PC Backup
50 System Image Restore Complete PC Restore
51 Windows Photo Viewer Windows Photo Gallery
52 Problem Reports and Solutions Error Reporting
53 Server Manager Computer Management
54 Windows Firewall with Advanced Security Windows Firewall
55 Windows Server Backup NTBackup (Windows Backup Utility)
56 Remote Desktop Services Terminal Services
57 Terminal Services Gateway RD (Remote Desktop) Gateway
58 Bing Live Search
59 Custom Compatibility Fixes Shim
60 Live Framework MeshFX
61 Live Mesh Windows Live Sync
62 Live Migration Quick Migration
63 Live Search Windows Live Search
64 Microsoft Deployment Toolkit (MDT) Business Desktop Deployment Toolkit
65 Microsoft Dynamics products Microsoft Business Solutions
66 Microsoft Outlook Microsoft Office Outlook
67 Microsoft SharePoint Workspace Microsoft Office Groove
68 System Center Configuration Manager Systems Management Server (SMS)
69 System Center Data Protection Manager Data Protection Server
70 System Center Operations Manager Microsoft Operations Manager (MOM)
71 Active Directory Users and Computers User Manager for Domains
72 Windows Activation Technology (WAT) Windows Genuine Advantage (WGA)
73 Windows DAC MDAC (Microsoft Data Access
74 Windows File Protection (on NT 5.x) System File Protection (WinME)
75 Windows Installer Microsoft Installer
76 Windows Internet Explorer (IE7 onwards) Microsoft Internet Explorer (up to IE6)
77 Windows Live Butterfly MSN Butterfly
78 Windows Live Family Safety Windows Live OneCare Family Safety
79 Windows Live Mesh Live Mesh
80 Windows Live Photo Gallery Windows Photo Gallery
81 Windows Live Search MSN Search
82 Windows Live SkyDrive Windows Live Folders
83 Windows Live Sync Windows Live FolderShare

- 38 -
© 2011, BCDALAI's Free Tech. Support Blog
Windows Command Guide 2011

84 Windows Script Host Windows Scripting Host

85 Windows SteadyState Microsoft Shared Computer Toolkit
86 Windows Virtual PC Microsoft Virtual PC
Naming Trends (New to Old)
Networks > Network Places > My Network Places
Windows Resource Protection (Vista/2K8/Win7) > Windows File Protection (System File
Checker (sfc.exe) (2K/XP/2K3) > System File Protection (WinME)
Bing > Live Search > Windows Live Search > MSN Search
Windows Live Mesh > Live Mesh > Windows Live Sync > Windows Live FolderShare
Notes: Functionalities of some Microsoft product and technologies has been enhanced and
consolidated with some other products / features. Sometimes you may not even notice the small
changes in a product features listed here. This table makes easy understanding of the ever changing
Microsoft technologies.

Books / Articles:
MCTS: Windows 7 Configuring (Exam 70-680), MCTS: Exam 70-649, MCTS: Windows Vista (Exam 70-
620 and 70-622), Microsoft Encyclopedia of Security,Microsoft Office 2003 Resource Kit,Microsoft
th th nd
Windows Internals, 4 Ed. and 5 Ed, Microsoft Windows Vista Administration, Understanding IPv6 2
Ed., Windows 7 Inside Out,Windows 7 Resource Kit, Windows Registry Guide, Windows Vista Inside
Out, Windows Vista Resource Kit,Office 2010 All-in-One For Dummies,CCNA Study Guide (Exam 640-
802), OtherMCITP books.
Programs and Tools:
Admin Packs,Camtech Tools, DameWare NT Utilities, Debugging Tools for Windows, dllusage,
EasyBCD, gtools, HijackThis, InnoSetup, nLite, Notepad2, NSIS, Path, pserv, RT 7 Lite, Resource
Hacker, Sysinternals Tools, System Explorer, Unlocker, vLite, WinTricks, Windows AIK, Windows
Resource Kit Tools, Windows SDK, XP SysPad etc.
Websites and Forums:,,,,,, ,,,,,,,,,,,,,,,
@edbott, @ITPRO, @mariusoiaga,@markrussinovich, @maryjofoley, @Microsoft, @MicrosoftHelps,
@MicrosoftKB, @MicrosoftKB1, @MicrosoftKB3, @msitpro, @MSLearning, @MSWindows, @Office,
@pcquest, @pcworld, @ranjanaj, @sp3ciali5t, @Sysinternals, @TechNetTips, @techworldnews,
@TheWindowsClub, @thurrott, @WilliamStanek, @windowsblog, @WindowsITPro.
Useful articles by this Author:
Administrative Power Tricks:
Known/Unknown Facts on Windows:
Integrate “Service Packs” into Windows and Office Installations:
Vista Folder-File Info:
Enable or Disable Windows Update Auto Restart:
Windows Common FAQs-001:
The computer screen dims after resume from Hibernation:
Creating custom RUN commands for your favorite apps:


Continuous learning is the minimum requirement for success in any field.

- 39 -
© 2011, BCDALAI's Free Tech. Support Blog