Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
com]
Welcome to the “Windows Command Guide”. In this guide you will find all types of
Windows commands. This guide includes every possible command; those are available on a
Windows platform. There are many long and unusual commands, those you may not use
commonly – but, these commands available in Windows platform whether you know it
or not. If you have more information, then please share with me. For more information visit
the website.
About this Article:
As every Windows user knows what a command is, so there is no need for describing it. This
guide contains 440+ Run commands and 580+ additional Windows commands. This guide contains
approx. 1000+ Windows commands in various categories. This is very useful for everyone using –
desktop, laptop and server. The objective of this guide is to know more about Windows commands,
internals features and to speed up the administrative tasks. See the version number to check the latest
updates and new release.
Document History: (updated: v3.4)
Time Changes
2010 Version 3.xx: 75+ GUID, shell commands, latest updates and revision.
2009 Version 2.xx: major updates: 300+ Run commands; 95+ Rundll32 commands;
120+ Environment Variables; 150+ Command-line tools; 75+ Control Panel
Applets Canonical names on Vista SP2, 2008 SP2, Windows 7 and Office 2010.
2008 Version 1.xx: with more added commands with Vista and Server 2008.
2004-07 Initial use, testing and first publication on 2007.
-1-
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
Contents
Chapter – 1
Windows Run Commands
Network Run Commands
Run Commands in Windows Vista
Run Commands in Windows Server 2008
Run Commands in Windows 7
Chapter – 2
Run Commands for Third-party Programs
Control Panel Applet Commands
Command-line Tools: Windows XP / 2003
Command-line Tools: Vista / Server 2008 / Windows 7
Advance Rundll32 Commands
A. Windows 2000 / XP / Server 2003
B. Windows Vista / Server 2008 / Windows 7
Chapter – 3
Commands-cum-Shortcuts
Unique and Special Commands
Relative System Paths with Shell commands
Environment Variables
Chapter – 4
Recovery Console Commands
Command Descriptions
Appendix:
A. ESSENTIAL NOTES
B. CHANGED NAMES: In Vista, Server 2008 and Windows 7 etc.
C. Axioms in this guide
D. Commonly Used Command-line Tools
E. Bibliography, References and Tools
-2-
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
Chapter – 1
Windows Run Commands
[For Windows 2000 / XP / Server 2003 / Vista / Server 2008 / Windows 7. See Appendix-A6]
Table-1
SL. APPLICATION COMMAND Ref
001 Accessibility Controls access.cpl 1
002 Accessibility Wizard accwiz 3
003 Add Hardware Wizard hdwwiz.cpl 1
004 Add/Remove Programs appwiz.cpl 2
005 Administrative Tools control admintools
006 Automatic Updates wuaucpl.cpl 1
007 Bluetooth Transfer Wizard fsquirt
008 Calculator calc
009 Certificate Manager certmgr.msc
010 Character Map charmap
011 Clipboard Viewer clipbrd 3
012 Command Prompt cmd
013 Component Services (DCOM/COM+ configuration) dcomcnfg
014 Computer Management 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 3
019 Device Manager devmgmt.msc
020 DirectX Diagnostic Tool dxdiag
021 Disk Cleanup Utility (Appendix-A1) cleanmgr
022 Disk Defragment dfrg.msc 1
023 Disk Management diskmgmt.msc
024 Disk Partition Manager diskpart
025 Display Properties control desktop 1
026 Display Properties desk.cpl 1
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 3
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 2
036 Folders Properties control folders
037 Fonts Folder control fonts
038 Fonts Folder fonts
039 Game Controllers joy.cpl
040 Game: Free Cell freecell 3
041 Game: Hearts Card Game mshearts 3
042 Game: Internet Backgammon bckgzm 3
043 Game: Internet Checkers chkrzm 3
044 Game: Internet Hearts hrtzzm 3
045 Game: Internet Reversi rvsezm 3
046 Game: Internet Spades shvlzm 3
047 Game: Minesweeper winmine 3
048 Game: Pinball pinball 3
049 Game: Solitaire sol 3
050 Game: Spider Solitaire spider 3
051 Group Policy Object Editor gpedit.msc
052 Help and Support Center helpctr 3
053 HyperTerminal hypertrm 3
054 Iexpress Wizard (packaging tool) iexpress
055 Indexing Service ciadv.msc
-3-
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
-4-
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
-5-
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
-6-
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
-7-
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
-8-
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
Chapter – 2
Run Commands for Third-party Programs
Table-6
[Note: These commands will work, only if the particular software / applications are installed.]
SL. APPLICATION COMMAND
001 7-Zip 7zfm
002 ACDSee 2009 Showroom acdseesr
003 ACDSee Device Detector v5.0 devdetect
004 ACDSee FotoSlate v4.0 fotoslate4
005 ACDSee Photo Editor 2008 v5.0 acdseephotoeditor2008
006 ACDSee Photo Editor v4.0 acdseephotoeditor4
-9-
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
- 10 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
- 11 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
- 12 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
- 13 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
- 14 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
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
disk.
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 ubsystem 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.
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.
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.
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 Timezone change tool. A command Line utility to make timezone 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.
- 15 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
- 16 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
- 17 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
- 18 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
- 19 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
Chapter – 3
Command-cum-Shortcuts
[Note: These commands can be used to opening / doing a specific task and to create a shortcut for
frequent use. See Appendix-A5]
Locking System:
%WinDir%\system32\rundll32 user32.dll, LockWorkStation
Hibernate System:
%WinDir%\System32\rundll32 PowrProf.dll, SetSuspendState
Note: Hibernate option must be enabled in the “Power Options” from Control Panel. Otherwise the
system will go to standby mode.
Shutdown System:
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
Note: Replace 00 preferably with any two digit number.
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
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
- 20 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
- 21 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
- 22 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
39 AppData %AppData%
40 AppData %USERPROFILE%\Application Data
41 AppData Application Data
42 AppData shell:appdata
43 Cache %USERPROFILE%\Local Settings\Temporary Internet Files
44 Cache shell:cache
45 CD Burning shell:cd burning
46 Cookies %USERPROFILE%\Cookies
47 Cookies Cookies
48 Cookies shell:cookies
49 Current User Location %USERPROFILE%
50 Desktop %USERPROFILE%\Desktop
51 Desktop Desktop
52 Desktop shell:desktop
53 Favorites %USERPROFILE%\Favorites
54 Favorites Favorites
55 Favorites shell:favorites
56 History %USERPROFILE%\Local Settings\History
57 Local AppData %USERPROFILE%\Local Settings\Application Data
58 Local Settings %USERPROFILE%\Local Settings
59 My Music shell:my music
60 My Pictures %USERPROFILE%\My Documents\My Pictures
61 My Pictures shell:my pictures
62 My Videos shell:my video
63 NetHood %USERPROFILE%\NetHood
64 NetHood NetHood
65 NetHood shell:nethood
66 Personal Documents %USERPROFILE%\My Documents
67 Personal Documents My Documents
68 Personal Documents shell:personal
69 PrintHood %USERPROFILE%\PrintHood
70 PrintHood PrintHood
71 PrintHood shell:printhood
72 Profile shell:profile
73 Programs %USERPROFILE%\Start Menu\Programs
74 Programs shell:programs
75 Recent %USERPROFILE%\Recent
76 Recent Recent
78 Recent shell:recent
79 Send To %USERPROFILE%\SendTo
80 Send To sendto
81 Send To shell:sendto
82 Start Menu %USERPROFILE%\Start Menu
83 Start Menu shell:start menu
84 Start Menu Start Menu
85 Startup %USERPROFILE%\Start Menu\Programs\Startup
86 Startup shell:startup
87 Temp %TEMP%
88 Temp %TMP%
89 Templates %USERPROFILE%\Templates
90 Templates shell:templates
91 Templates 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
variable.
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
- 23 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
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-13
[Note: These commands are for admin purposes and may not launch from command prompt / Run.]
User management Environment Variables
Sl. Environment Variable Description
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
Settings\Temp
In Vista: C:\Users\{username}\AppData\Local\Temp
06 %TMP% In XP: C:\Documents and Settings\{username}\Local
Settings\Temp
In Vista: C:\Users\{username}\AppData\Local\Temp
06 %USERDOMAIN% The variable holds the name of the Workgroup or
Windows Domain to which the current user belongs.
07 %USERNAME% {Username}. This variable is to determine the active
user‟s login identification.
08 %USERPROFILE% In XP: C:\Documents and Settings\{username}
In Vista: C:\Users\{username}
System path Environment Variables
09 %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
10 %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”.
11 %COMMONPROGRAMFILES% Usually: C:\Program Files\Common Files
12 %COMMONPROGRAMFILES(X86)% The default in Vista is: C:\Program Files
(x86)\Common Files
13 %COMPUTERNAME% {Computername} The NetBIOS name of the computer.
14 %COMSPEC% Starts a new instance of the Windows XP command
interpreter. C:\Windows\System32\cmd.exe
15 %HOMEDRIVE% The drive where Windows is installed. Usually it is C:\
16 %HOMEPATH% In XP: C:\Documents and Settings\{username}
In Vista: C:\Users\{username}
17 %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.
18 %NUMBER_OF_PROCESSORS% Quantity of CPUs installed in the system.
19 %OS% For Windows NT „family‟ it is “Windows_NT”
20 %PATH% C:\Windows\system32;C:\Windows;C:\Windows\System
32\Wbem;{plus program paths}
21 %PATHEXT% .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WS
H;.MSC
22 %PROCESSOR_ARCHITECTURE% Indicates the chip architecture of the CPU. E.g. x86 or
x64.
23 %PROGRAMFILES% This variable points to Program Files directory, which
- 24 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
Chapter – 4
Recovery Console Commands
Table-14
[Note: Recovery Console will work on Windows 2000, XP and Server 2003. Recovery Console is not
available on Vista, Server 2008, and Windows 7. See Appendix-A7]
ATTRIB CHKDSK DIR EXPAND LISTSVC MORE RMDIR
BATCH CLS DISABLE FIXBOOT LOGON NET SYSTEMROOT
BOOTCFG COPY DISKPART FIXMBR MAP RD TYPE
CD DEL ENABLE FORMAT MD REN
CHDIR DELETE EXIT HELP MKDIR RENAME
- 25 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
3. A Windows Setup Dialog Box appears. The Windows Setup Dialog Box describes the
Recovery Console option. To confirm the installation, click Yes.
4. Restart the computer. The next time that you start your computer, “Microsoft Windows
Recovery Console” appears on the startup menu.
Note: Always use Windows XP Professional Service Pack 3 CD to Install the Recovery Console and
to avoid this error:
“Setup cannot continue because the version of Windows on your computer is newer
than the version on the CD.”
Command Descriptions
[Note: See table-8 for rest of the command in the above table.]
Batch: executes commands that you specify in the text file, Inputfile. Outputfile holds the output of the
commands. If you omit the Outputfile 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:
SERVICE_BOOT_START
SERVICE_SYSTEM_START
SERVICE_AUTO_START
SERVICE_DEMAND_START
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.
- 26 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
Appendix
A. ESSENTIAL NOTES
1. Running Disk Cleanup for all drives:
Disk Cleanup Settings: cleanmgr /sageset:99
Automatic Cleanup: cleanmgr /sagerun:99
[Note: Always check settings before “Automatic Cleanup”.]
2. 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
The details of options available for shutdown are:
-i: Display GUI interface, must be the first option
-l: Log off (cannot be used with –m option)
-s: Shutdown the computer
-r: Shutdown and restart the computer
-a: Abort a system shutdown
-m \\computername: Remote computer to shutdown/restart/abort
-t xx: Set timeout for shutdown to xx seconds
-c “comment”: Shutdown comment (maximum of 127 characters)
-f: Forces running applications to close without warning
-d [u][p]:xx:yy : The reason code for the shutdown
[Note: For these options in Windows Vista or later use / (forward slash) instead of – (dash).]
3. TCP/IP: In Windows XP / Windows Server 2003 you can Install / uninstall Ipv6 protocol, but not
in Windows Vista / Windows Server 2008 / Windows 7. Unlike this you can install / uninstall
Ipv4 protocol in Windows Vista / Windows Server 2008 / Windows 7, but not in Windows XP /
Windows Server 2003.
4. 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 is installed.
5. Create shortcut: You can create shortcuts by using these commands for the respective
programs. If you find problem with the some commands (mentioned in this guide) in Windows
Vista or later then use / (forward slash) instead of – (dash) in those 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 box.
6. 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.
7. Recovery commands: In Vista, Server 2008 and Windows 7 Recovery Console is not
available (previously with Windows 2000, XP and Server 2003). This is replaced by various
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
8. 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.
- 27 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
- 28 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
- 29 -
© 2004-2010, bcdalai
bcdalai's Free Tech. Support Blog: [http://bcdalai.blogspot.com]
Note: To know more about each command syntax use /? switch after each syntax. In Windows 7 these
syntax are not available for net command: NAME, PRINT and SEND.
regsvr32- This command-line tool registers .dll files as command components in the registry.
Syntax:
regsvr32 [/u] [/s] [/n] [/i[:cmdline]] dllname
Parameters
/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
E. Bibliography, References and Tools:
Books/Articles: MCTS: Windows 7 Configuring (Exam 70-680), MCTS: Windows Vista Client (Exam
70-620), MCTS: Exam: 70-622 and 70-623, Microsoft Encyclopedia of Security. Microsoft Office 2003
Resource Kit, Microsoft Windows Internals, 4th Ed., Microsoft Windows Vista Administration,
Understanding IPv6 2nd Ed., Windows 7 Inside Out, Windows 7 Resource Kit, Windows Registry Guide,
Windows Vista Inside Out, Windows Vista Resource Kit, CCNA Study Guide (Exam 640-802), Other
MCSE, MCTS, MCITP books.
Websites and Forums:
http://blogs.technet.com/markrussinovich/, http://en.wikipedia.org/, http://forums.microsoft.com/,
http://msdn.microsoft.com/, http://technet.microsoft.com/, http://techrepublic.com.com/,
http://www.sevenforums.com/, http://windows7forums.com/, http://windows8forums.com/,
http://www.answerbag.com/, http://www.chip.in/forums/, http://www.cnet.com/, http://www.fixya.com/,
http://www.helpwithwindows.com/, http://www.msfn.org/, http://www.neowin.net/,
http://www.techspot.com/, http://www.wincert.net/, http://www.windowsbbs.com/,
http://www.windowsitpro.com/, http://www.windowssecrets.com/, http://www.worldstart.com/,
http://www.zdnet.com/
Programs and Tools: Camtech Tools, WinTricks, DameWare NT Utilities, EasyBCD, nLite, vLite,
Sysinternals Tools, Unlocker, XP SysPad, Path, dllusage, System Explorer, Notepad2, pserv, Resource
Hacker, Windows Resource Kit Tools and Admin Packs.
THE END
Continuous learning is the minimum requirement for success in any field.
- 30 -
© 2004-2010, bcdalai