Talk:Windows Control Panel Applet Commands

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search

Complete Applets List A

Action Center

   Check for solutions to problems: %windir%\system32\rundll32.exe werconcpl.dll,LaunchErcApp -updatecheck
   Choose when to be notified about changes to your computer: %windir%\system32\UserAccountControlSettings.exe

Administrative Tools

   Disk Cleanup: %windir%\system32\cleanmgr.exe
   Disk Defragmenter: %windir%\system32\dfrgui.exe
   iSCSI Initiator Properties: %windir%\system32\iscsicpl.exe
   Windows Memory Diagnostic: %windir%\system32\mdsched.exe
   Local Certificates Folder: %windir%\system32\mmc.exe %windir%\system32\certlm.msc
   Disk Management: %windir%\system32\mmc.exe %windir%\system32\diskmgmt.msc
   Event Viewer: %windir%\system32\mmc.exe %windir%\system32\eventvwr.msc
   Local Group Policy Editor: %windir%\system32\mmc.exe %windir%\system32\gpedit.msc
   Local Services: %windir%\system32\mmc.exe %windir%\system32\services.msc
   Task Scheduler: %windir%\system32\mmc.exe %windir%\system32\taskschd.msc
   Task Scheduler: %windir%\system32\control.exe schedtasks
   ODBC Data Source Administrator (32 or 64-bit): %windir%\system32\odbcad32.exe
   Performance Monitor: %windir%\system32\perfmon.exe
   Generate a System Diagnostics Report: %windir%\system32\perfmon.exe /report

Color Management

   Color Management: %windir%\system32\colorcpl.exe

Devices and Printers

   Scanners and Cameras: "%ProgramFiles%\Windows Photo Viewer\ImagingDevices.exe"
   Add a Device: %windir%\system32\DevicePairingWizard.exe
   Device Installation Settings: %windir%\system32\rundll32.exe newdev.dll,DeviceInternetSettingUi 5
   Add a Printer: %windir%\system32\rundll32.exe printui.dll,PrintUIEntry /il
   Game Controllers: %windir%\system32\rundll32.exe shell32.dll,Control_RunDLL %windir%\system32\joy.cpl
   Windows Fax and Scan: %windir%\system32\wfs.exe

Display

   Clear Type Text Tuner: %windir%\system32\cttune.exe
   Display Color Calibration: %windir%\system32\dccw.exe
   Desktop Icon Settings: %windir%\system32\rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0

Ease of Access

   Narrator Settings: %windir%\system32\narrator.exe

File History

   File History: %windir%\system32\FileHistory.exe

Folder Options

   Folder Search Options: %windir%\system32\rundll32.exe shell32.dll,Options_RunDLL 2
   Folder View Options: %windir%\system32\rundll32.exe shell32.dll,Options_RunDLL 7

Fonts

   Private Character Editor: %windir%\system32\eudcedit.exe

Internet Options

   Connect to the Internet: %windir%\system32\xwizard.exe RunWizard {7071ECA0-663B-4bc1-A1FA-B97F3B917C55}

Network and Sharing Center

   Windows Network Diagnostics: %windir%\system32\Rundll32.exe ndfapi,NdfRunDllDiagnoseIncident
   Create a Dial-Up Connection: %windir%\system32\xwizard.exe RunWizard {7071EC71-663B-4bc1-A1FA-B97F3B917C55}
   Create a VPN Connection: %windir%\system32\xwizard.exe RunWizard {7071EC75-663B-4bc1-A1FA-B97F3B917C55}
   Set Up a Connection or Network: %windir%\system32\xwizard.exe RunWizard {7071ECE0-663B-4bc1-A1FA-B97F3B917C55}
   Create a Broadband Connection: %windir%\system32\xwizard.exe RunWizard {C03E8585-781E-49a1-8190-CE902D0B2CE7}
   View Network Connections: %windir%\system32\control.exe netconnections

Personalization

   Screen Resolution: %windir%\system32\control.exe desk.cpl,Settings,@Settings
   Installed Themes: %windir%\system32\control.exe desk.cpl,Themes,@Themes
   Screen Saver Settings: %windir%\system32\control.exe desk.cpl,screensaver,@screensaver

Power Options

   Advanced Settings: %windir%\system32\control.exe powercfg.cpl,,3

Programs and Features

   Program Compatibility Troubleshooter: %windir%\system32\msdt.exe -id PCWDiagnostic -ep ControlPanelSearch
   Turn Windows Features On and Off: %windir%\system32\OptionalFeatures.exe

RemoteApp and Desktop Connections

   Access RemoteApp and desktops: %windir%\system32\xwizard.exe RunWizard {7940ACF8-60BA-4213-A7C3-F3B400EE266D}

Sound

   Volume Mixer: %windir%\system32\sndvol.exe

Speech Recognition

   Speech Recognition Voice Training: %windir%\system32\rundll32.exe %windir%\system32\speech\speechux\SpeechUX.dll,RunWizard UserTraining
   Start or Set Up Speech Recognition: %windir%\speech\common\sapisvr.exe -SpeechUX
   Microphone Setup Wizard: %windir%\system32\rundll32.exe %windir%\system32\speech\speechux\SpeechUX.dll,RunWizard MicTraining
   Speech Recognition Tutorial: %windir%\system32\rundll32.exe %windir%\system32\speech\speechux\SpeechUX.dll,RunWizard Tutorial
   Text to Speech Settings: %windir%\system32\rundll32.exe shell32.dll,Control_RunDLL %windir%\system32\speech\speechux\sapi.cpl

Sync Center

   Manage Offline Files, General: %windir%\system32\rundll32.exe shell32.dll,Control_RunDLL %windir%\system32\cscui.dll
   Manage Offline Files, Disk Usage: %windir%\system32\rundll32.exe shell32.dll,Control_RunDLL %windir%\system32\cscui.dll,1
   Manage Offline Files, Encryption: %windir%\system32\rundll32.exe shell32.dll,Control_RunDLL %windir%\system32\cscui.dll,2
   Manage Offline Files, Network: %windir%\system32\rundll32.exe shell32.dll,Control_RunDLL %windir%\system32\cscui.dll,3

System

   Windows Remote Assistance, Invite someone you trust to help you: %windir%\system32\msra.exe
   Create a Recovery Drive: %windir%\system32\RecoveryDrive.exe
   Edit User's Environment Variables: %windir%\system32\rundll32.exe sysdm.cpl,EditEnvironmentVariables
   User Profiles: %windir%\system32\rundll32.exe sysdm.cpl,EditUserProfiles
   System Properties, Advanced: %windir%\system32\SystemPropertiesAdvanced.exe
   System Properties, Computer Name: %windir%\system32\SystemPropertiesComputerName.exe
   Performance Options: %windir%\system32\SystemPropertiesPerformance.exe
   System Properties, System Protection: %windir%\system32\SystemPropertiesProtection.exe
   System Properties, Remote: %windir%\system32\SystemPropertiesRemote.exe
   Windows Task Manager, Processes: %windir%\system32\taskmgr.exe /6

Tablet PC Settings

   Tablet PC Settings, Display: %windir%\system32\rundll32.exe shell32.dll,Control_RunDLL TabletPC.cpl @1,display
   Tablet PC Settings, Other: %windir%\system32\rundll32.exe shell32.dll,Control_RunDLL TabletPC.cpl @1,other

Taskbar and Navigation

   Toolbars: %windir%\System32\rundll32.exe shell32.dll,Options_RunDLL 6
   Navigation: %windir%\system32\rundll32.exe shell32.dll,Options_RunDLL 8

Troubleshooting

   Playing Audio: %windir%\system32\msdt.exe -id AudioPlaybackDiagnostic -ep ControlPanelSearch
   Recording Audio: %windir%\system32\msdt.exe -id AudioRecordingDiagnostic -ep ControlPanelSearch
   Hardware and Devices: %windir%\system32\msdt.exe -id DeviceDiagnostic -ep ControlPanelSearch
   HomeGroup: %windir%\system32\msdt.exe -id HomeGroupDiagnostic -ep ControlPanelSearch
   System Maintenance: %windir%\system32\msdt.exe -id MaintenanceDiagnostic -ep ControlPanelSearch
   Internet Connections: %windir%\system32\msdt.exe -id NetworkDiagnosticsWeb -ep ControlPanelSearch
   Printer: %windir%\system32\msdt.exe -id PrinterDiagnostic -ep ControlPanelSearch
   Search and Indexing: %windir%\system32\msdt.exe -id SearchDiagnostic -ep ControlPanelSearch
   Problem Steps Recorder: %windir%\system32\psr.exe

User Accounts

   Certificate Manager: %windir%\system32\mmc.exe %windir%\system32\certmgr.msc
   Local Users and Groups: %windir%\system32\mmc.exe %windir%\system32\lusrmgr.msc
   User Accounts: %windir%\system32\netplwiz.exe
   Manage your file encryption certificates: %windir%\system32\rekeywiz.exe
   Forgotten Password Wizard: %windir%\system32\rundll32.exe keymgr.dll,PRShowSaveWizardExW

Windows Mobility Center

   Presentation Settings: %windir%\system32\presentationsettings.exe

Windows Update

   Check for updates: %windir%\system32\wuauclt.exe /showcheckforupdates

Windows To Go

   Windows To Go Startup Options: %windir%\system32\rundll32.exe pwlauncher.dll,ShowPortableWorkspaceLauncherConfigurationUX

Windows XP Control Panel shortcuts

A faster way to run any applet is to issue a direct command:

control applet.cpl

where applet is any Control Panel applet on your system. Table 1 shows a list of the most common ones. Simply typing control by itself opens the Control Panel.

Accessibility Options 	access.cpl
Add New Hardware Wizard 	hdwwiz.cpl
Add/Remove Programs 	appwiz.cpl
Date and Time Properties 	timedate.cpl
Display Properties 	desk.cpl
FindFast 	findfast.cpl
Folder Properties * 	folders
Fonts Folder * 	fonts
Internet Properties 	inetcpl.cpl
Joystick Properties 	joy.cpl
Keyboard Properties 	main.cpl keyboard
Mouse Properties 	main.cpl
Network Properties 	ncpa.cpl
Password Properties 	password.cpl
Phone and Modem options 	telephon.cpl
Power Management 	powercfg.cpl
Printers Folder * 	printers
Regional settings 	intl.cpl
Scanners and Cameras 	sticpl.cpl
Sound Properties 	mmsys.cpl sounds
Sounds and Audio Device Properties 	mmsys.cpl
System Properties 	sysdm.cpl
User settings 	nusrmgr.cpl
TweakUI 	tweakui.cpl

sources:

List of Windows Snap-ins (.msc) and Applets (.cpl)

List of Microsoft Management Console (MMC) snap-ins and applets. You can run the commands below from a command prompt or straight from the menu Start ->Run.

  • ADFS.msc AD Federation Services
  • CERTMGR.msc Certificate Management –Current User
  • CERTSRV.msc Certification Authority
  • CERTTMPL.msc Certificate Templates
  • COMPMGMT.msc Computer Management
  • COMEXP.msc Component Services C:windowssystem32com
  • DCOMCNFG Component Services
  • DSA.msc ADUC (AD Users and Computers)
  • DFSGUI.msc DFS Management
  • DFSMGMT.msc DFS Management R2
  • DNSMGMT.msc DNS Management
  • DOMAIN.msc Domains and Trusts
  • DSSITE.msc Sites and Services
  • EVENTVWR.msc Event Viewer
  • GPEDIT.msc Local Policy
  • GPMC.msc Group Policy Management Console
  • PKIVIEW.msc PKI management
  • RSOP.msc Resultant set of Policy
  • SECPOL.msc Local Security Policy
  • SERVICES.msc Services
  • SCHMMGMT.msc Schema Management
  • TASKMGR Task Manager
  • TSCC.msc TS Configuration

.exe list

  • TSADMIN TS Administrator
  • LICMGR TS Licensing

The commands below are available on the Windows Server 2003 Administration Tools Pack (adminpak.msi) or on the Windows Server 2003 Installation CD.

  • ADMGMT.msc AD Management –Domains, Sites, DNS and ADUC
  • PKMGMT.msc PKI Management – Authorities, Templates
  • IPADDRMGMT.msc WINS,DNS and DHCP in one console

Windows Server 2008

  • SERVERMANAGER.msc Server Manager
  • NAPCLCFG.msc Network Access Protection Client Configuration
  • STOREXPL.msc Storage Manager
  • TSCONFIG TS Configuration
  • WBADMIN Windows Server Backup
  • WF.msc Windows Firewall + Advanced Security

Applets for Windows management

  • NCPA.CPL Network Properties
  • APPWIZ.CPL Add remove programs
  • DEVMGMT.msc Device Manager
  • FSMGMT.msc File Share Management
  • SYSDM.CPL System Properties
  • FIREWALL.CPL Firewall applet
  • DESK.CPL Display Properties
  • CONTROL Control Panel
  • SYSDM.CPL System Properties
  • ACCESS.CPL Accessibility Options
  • APPWIZ.CPL Add/Remove Programs
  • TIMEDATE.CPL Date/Time Properties
  • DESK.CPL Display Properties
  • FINDFAST.CPL FindFast
  • FONTS Fonts Folder
  • INETCPL.CPL Internet Properties
  • JOY.CPL Joystick Properties
  • LUSRMGR.MSC Local Users and Groups
  • MAIN.CPL Keyboard Keyboard Properties
  • MLCFG32.CPL Microsoft Exchange
  • WGPOCPL.CPL Microsoft Mail Post Office
  • MAIN.CPL Mouse Properties
  • MMSYS.CPL Multimedia Properties
  • PASWORD.CPL Password Properties
  • MAIN.CPL PC CARD (pcmcia) PC Card
  • PRINTERS Printers Folder
  • INTL.CPL Regional Settings
  • STICPL.CPL Scanners and Cameras
  • MMSYS.CPL sounds Sound Properties

Run Commands for Windows 7

Administrative Tools

Administrative Tools = control admintools
Authorization Manager = azman.msc
Component Services = dcomcnfg
Certificate Manager = certmgr.msc
Direct X Troubleshooter = dxdiag
Display Languages = lpksetup
ODBC Data Source Administrator = odbcad32
File Signature Verification Tool = sigverif
Group Policy Editor = gpedit.msc
Add Hardware Wizard = hdwwiz.cpl
iSCSI Initiator = iscsicpl
Iexpress Wizard = iexpress
Local Security Settings = secpol.msc
Microsoft Support Diagnostic Tool = msdt
Microsoft Management Console = mmc
Print management = printmanagement.msc
Printer User Interface = printui
Problems Steps Recorder = psr
People Near Me = p2phost
Registry Editor = regedit or regedt32
Resoure Monitor = resmon
System Configuration Utility = msconfig
Resultant Set of Policy = rsop.msc
SQL Server Client Configuration = cliconfg
Task Manager = taskmgr
Trusted Platform Module = tpm.msc
TPM Security Hardware = TpmInit
Windows Remote Assistance = msra
Windows Share Folder Creation Wizard = shrpubw
Windows Standalong Update Manager = wusa
Windows System Security Tool = syskey
Windows Script Host Settings = wscript
Windows Version = winver
Windows Firewall with Advanced Security = wf.msc
Windows Memory Diagnostic = MdSched
Windows Malicious Removal Tool = mrt

Computer Management

Computer Management = compmgmt.msc or CompMgmtLauncher
Task Scheduler = control schedtasks
Event Viewer = eventvwr.msc
Shared Folders/MMC = fsmgmt.msc
Local Users and Groups = lusrmgr.msc
Performance Monitor = perfmon.msc
Device Manager = devmgmt.msc
Disk Management = diskmgmt.msc
Services = services.msc
Windows Management Infrastructure = wmimgmt.msc

Conrtol Panel

Control Panel = control
Action Center= wscui.cpl
Autoplay = control.exe /name Microsoft.autoplay
Backup and Restore = sdclt
Create a System Repair disc = recdisc
BDE Administrator = bdeadmin.cpl
Color Management = colorcpl
Credential Manager = control.exe /name Microsoft.CredentialManager
Credential Manager Stored User Names and Passwords = credwiz
Date and Time Properties = timedate.cpl
Default Programs = control.exe /name Microsoft.DefaultPrograms
Set Program Access and Computer Defaults = control appwiz.cpl,,3 or ComputerDefaults
Devices and Printers = control printers
Devices and Printers Add a Device = DevicePairingWizard
Display = dpiscaling
Screen Resolution = desk.cpl
Display Color Calibration = dccw
Cleartype Text Tuner = cttune
Folders Options = control folders
Fonts = control fonts
Getting Started = GettingStarted
HomeGroup = control.exe /name Microsoft.HomeGroup
Indexing Options = control.exe /name Microsoft.IndexingOptions
Internet Properties = inetcpl.cpl
Keyboard = control keyboard
Location and Other Sensors = control.exe /name Microsoft.LocationandOtherSensors
Location Notifications = LocationNotifications
Mouse = control mouse or main.cpl
Network and Sharing Center = control.exe /name Microsoft.NetworkandSharingCenter
Network Connections = control netconnections or ncpa.cpl
Notification Area Icons = control.exe /name Microsoft.NotificationAreaIcons
Parental Controls = control.exe /name Microsoft.ParentalControls
Performance Information = control.exe /name Microsoft.PerformanceInformationandTools
Personalization = control desktop
Windows Color and Appearance = control color
Phone and Modem Options = telephon.cpl
Power Configuration = powercfg.cpl
Programs and Features = appwiz.cpl or control appwiz.cpl
Optional Features Manager = optionalfeatures or control appwiz.cpl,,2
Recovery = control.exe /name Microsoft.Recovery
Regional and Language = intl.cpl
RemoteApp = control.exe /name Microsoft.RemoteAppandDesktopConnections
Sound = mmsys.cpl
Volume Mixer = sndvol
System Properties = sysdm.cpl or Windows logo key + Pause/Break
SP ComputerName Tab = SystemPropertiesComputerName
SP Hardware Tab = SystemPropertiesHardware
SP Advanced Tab = SystemPropertiesAdvanced
SP Performance = SystemPropertiesPerformance
SP Data Execution Prevention = SystemPropertiesDataExecutionPrevention
SP Protection Tab = SystemPropertiesProtection
SP Remote Tab = SystemPropertiesRemote
Windows Activation = slui
Windows Activation Phone Numbers = slui 4
Taskbar and Start Menu = control.exe /name Microsoft.TaskbarandStartMenu
Troubleshooting = control.exe /name Microsoft.Troubleshooting
User Accounts = control.exe /name Microsoft.UserAccounts
User Account Control Settings = UserAccountControlSettings
User Accounts Windows 2000/domain version = netplwiz or control userpasswords2
Encryption File System = rekeywiz
Windows Anytime Upgrade = WindowsAnytimeUpgradeui
Windows Anytime Upgrade Results = WindowsAnytimeUpgradeResults
Windows CardSpace = control.exe /name Microsoft.cardspace
Windows Firewall = firewall.cpl
WindowsSideshow = control.exe /name Microsoft.WindowsSideshow
Windows Update App Manager = wuapp

Accessories

Calculator = calc
Command Prompt = cmd
Connect to a Network Projector = NetProj
Presentation Settings = PresentationSettings
Connect to a Projector = displayswitch or Windows logo key + P
Notepad = notepad
Microsoft Paint = mspaint.exe
Remote Desktop Connection = mstsc
Run = Windows logo key + R
Snipping Tool = snippingtool
Sound Recorder = soundrecorder
Sticky Note = StikyNot
Sync Center = mobsync
Windows Mobility Center (Only on Laptops) = mblctr or Windows logo key + X
Windows Explorer = explorer or Windows logo key + E
Wordpad = write
Ease of Access Center = utilman or Windows logo key + U
Magnifier = magnify
Narrator = Narrator
On Screen Keyboard = osk
Private Character Editor = eudcedit
Character Map = charmap
Ditilizer Calibration Tool = tabcal
Disk Cleanup Utility = cleanmgr
Defragment User Interface = dfrgui
Internet Explorer = iexplore
Rating System = ticrf
Internet Explorer (No Add-ons) = iexplore -extoff
Internet Explorer (No Home) = iexplore about:blank
Phone Dialer = dialer
Printer Migration = PrintBrmUi
System Information = msinfo32
System Restore = rstrui
Windows Easy Transfer = migwiz
Windows Media Player = wmplayer
Windows Media Player DVD Player = dvdplay
Windows Fax and Scan Cover Page Editor = fxscover
Windows Fax and Scan = wfs
Windows Image Acquisition = wiaacmgr
Windows PowerShell ISE = powershell_ise
Windows PowerShell = powershell
XPS Viewer = xpsrchvw

Open Documents folder = documents
Open Pictures folder = pictures
Open Music folder = music
Open Videos folder = videos
Open Downloads folder = downloads
Open Favorites folder = favorites
Open Recent folder = recent
Logs out of Windows = logoff
Locks User Account = Windows logo Key + L

Windows Command Guide

This is Google's cache of https://www.scribd.com/doc/32028129/Windows-Command-Guide-2010. It is a snapshot of the page as it appeared on May 17, 2015 23:50:49 GMT. The current page could have changed in the meantime. Learn more Tip: To quickly find your search term on this page, press Ctrl+F or ⌘-F (Mac) and use the find bar.

Text-only version These search terms are highlighted: name microsoft windowsupdate Upload Browse Sign inJoinUpload Windows Command Guide 2010 Ratings: (0)|Views: 1,468|Likes: 68 Published by bcdalai Version 4.0.0

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 1st part (550+ commands) of this ebook is for everyday computer user and the 2nd part (700+ commands) is for advance user and power user. Read this ebook and explore the precious contents inside. About 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. See more Windows Command Guide 2011

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) http://bit.ly/wcgpdf / (XPS) http://bit.ly/wcgxps. 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 st version from Windows 2000 to Windows 7 or later. The 1 part (550+ commands) of this nd 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.

About 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

DEDICATED TO Teachers, Friends, IT Pro community, valuable Readers and Contributors. Acknowlegdements 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 Box.net and Blogger.com for providing web services for these works.

License 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.

Disclaimer 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 owners.

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: http://bcdalai.blogspot.com, Email: bcdalai2020@gmail.com, Twitter: @bcdalai2020. Copyright © 2004-2011, by bcdalai for “BCDALAI’s Free Tech. Support Blog”.

History: [Current Version: v4.0.0] Time 2011 2010 2009 2008 2004-07 Version Changes 4.0.X: Better presentation, testing; new command-line tools and tricks. 3.X: 400 commands- 75 GUID; 30 shell commands; 40 netsh Commands. Updates on Vista, Server 2008 / Server 2008 R2, Windows 7, Office 2010. 2.X: major updates: 300 commands- 160 Command-line tools; 75 Control Panel Applets; 160 Environment Variables; 110 rundll32 commands. Version 1.X: added more commands on: Vista and Windows Server 2008. 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.

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

Windows Command Guide 2011

CONTENTS 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 Appendix – B: CHANGED FEATURES AND NAMES REFERENCES

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: bcdalai2020@gmail.com or visit: http://kontactr.com/user/bcdalai

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

I

X

X

I

I I

X

X X X X X X X X X X X X

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

Windows Command Guide 2011

053 054 055 056 057 058 059 060 061 062 063 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095 096 097 098 099 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116

HyperTerminal Iexpress Wizard (packaging tool) Indexing Service Console Infrared Monitor (if installed) Internet Connection Wizard Internet Explorer Internet Explorer (InPrivate Mode) (IE8 or later) Internet Explorer (no Add-ons) Internet Properties Internet Setup Wizard Keyboard Properties Local Security Settings Console Local Users and Groups Console Log Off Mail client (Default) Mail configurations (Microsoft Outlook settings) Microsoft Chat Microsoft Management Console (Appendix-A13) Microsoft Media Player (for audio only) Microsoft Movie Maker Microsoft Narrator Microsoft Paint Microsoft Paint Microsoft Program Manager Microsoft Synchronization Manager Mouse Properties Mouse Properties MS-DOS Editor (text editor for MS-DOS) Network Access Protection (NAP) Client UI Network Connections Network Connections Network Setup Wizard (also Wireless) Notepad Novell NetWare (if installed) Object Packager On-Screen Keyboard Outlook Express Performance Monitor Performance Monitor Phone and Modem Options Phone and Modem Options Phone Dialer Power Configuration Printers and Faxes Printers Folder Private Character Editor Regional and Language Options Regional and Language Options Registry Editor Registry Editor Remote Access Phonebook Remote Assistance Remote Desktop Connection Removable Storage Console Removable Storage Operator Requests Resultant Set of Policy (RSOP) Scanners and Cameras Scheduled Tasks Security Center Services Shared Folder Wizard (creating shared folder) Shared Folders Shutdown Windows (Appendix-A3) Sound Recorder

hypertrm iexpress ciadv.msc control infrared icwconn1 iexplore iexplore -private iexplore -extoff inetcpl.cpl inetwiz control keyboard secpol.msc lusrmgr.msc logoff mailto: control mlcfg32.cpl winchat mmc mplay32 moviemk narrator mspaint pbrush progman mobsync control mouse main.cpl edit napstat control netconnections ncpa.cpl netsetup.cpl notepad control netware packager osk msimn perfmon perfmon.msc control telephony telephon.cpl dialer powercfg.cpl control printers printers eudcedit control international intl.cpl regedit regedt32 rasphone rcimlby -launchra mstsc ntmsmgr.msc ntmsoprq.msc rsop.msc sticpl.cpl control schedtasks wscui.cpl services.msc shrpubw fsmgmt.msc shutdown -s -t 00 sndrec32

X

X

X

X X

X

X

X I

X

I

I X X X I

X

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

Windows Command Guide 2011

117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153

154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174

mmsys.cpl Sounds and Audio cliconfg SQL Client Configuration sysedit System Configuration Editor msconfig System Configuration Utility msinfo32 System Information winmsd System Information sysdm.cpl System Properties restore/rstrui System Restore taskmgr Task Manager telnet Telnet Client tlntadmn Telnet Server Admin control userpasswords User Accounts (Local Users and Groups) control userpasswords2 User Accounts 2 (Advanced) nusrmgr.cpl User Accounts Management utilman Utility Manager wab Windows Address Book wabmig Windows Address Book Import Utility ntbackup Windows Backup Utility winmsd Windows Diagnose explorer Windows Explorer firewall.cpl Windows Firewall msiexec Windows Installer (version checking) magnify Windows Magnifier wmimgmt.msc Windows Management Infrastructure (WMI) wmplayer Windows Media Player (WMP) mplayer2 Windows Media Player 6.4.09 (old version) msmsgs Windows Messenger conf Windows NetMeeting Windows Picture Acquisition Wizard (needs camera) wiaacmgr oobe/msoobe /a Windows Product Activation (WPA) status syskey Windows System Security Tool wupdmgr Windows Update Launches (online update) winver Windows Version Information wordpad Windows WordPad write Windows Write regwiz /r Windows XP Registration Wizard (online) tourstart Windows XP Tour Wizard ADDENDA [“System Property” with a specific tab] TAB COMMAND control sysdm.cpl,,0 General control sysdm.cpl,,1 Computer Name control sysdm.cpl,,2 Hardware control sysdm.cpl,,3 Advanced control sysdm.cpl,,4 System Restore control sysdm.cpl,,5 Automatic Updates control sysdm.cpl,,6 Remote [“Add or Remove Programs” with a specific tab] control appwiz.cpl Change or Remove Programs: control appwiz.cpl,,0 Change or Remove Programs: control appwiz.cpl,,1 Add new Programs (from CD-ROM/Floppy) control appwiz.cpl,,2 Add/Remove Windows Components control appwiz.cpl,,3 Set Program Access and Defaults [“Sound and Audio Device” with a specific tab] control mmsys.cpl,,0 Volume control mmsys.cpl,,1 Sounds control mmsys.cpl,,2 Audio control mmsys.cpl,,3 Voice control mmsys.cpl,,4 Hardware [“Desktop Property” with a specific tab] control desk.cpl Desktop Property: Themes control desk.cpl,,0 Desktop Property: Desktop control desk.cpl,,1 Desktop Property: Screen Saver control desk.cpl,,2 Desktop Property: Appearance

X

I

X I I I X X, I

X, I X X X, I

X X

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

Windows Command Guide 2011

175 178 177 178 179 180 181

control desk.cpl,,3 Desktop Property: Settings [“System File Checker” (sfc.exe)utility usage] sfc /purgecache System File Checker (Purge File Cache) sfc /revert System File Checker (Return to Default Setting) sfc /scannow System File Checker (Scan immediately) sfc /scanboot System File Checker (Scan On every boot) sfc /scanonce System File Checker (Scan Once at next boot) sfc /cachesize=x System File Checker (Set cache size to x in MB)

X, I X, I X, I X, I X, I

References:

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

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

Windows Command Guide 2011

42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70

Trusted Platform Module (TPM) Trusted Platform Module (TPM) Windows Activation Client Windows Backup and Restore Windows Calendar * Windows DVD Maker Windows Easy Transfer (WET) Windows Fax and Scan Windows Features Windows Journal Windows Mail * Windows Mobility Center (Mobile PC) Windows Remote Assistance Windows Sidebar # Windows Update Application Launcher Appearance Settings Color Scheme Desktop background Display Settings (Screen Resolution) Folder Options: File extension associations Folder Options: Folder searching Folder Options: General Folder Options: View Multi-monitor Power Options: Advanced Settings page Power Options: Create a power plan Power Options: Edit current plan settings Power Options: System settings Regional and Language Options: Administrative Regional and Language Options: Keyboard Regional and Language Options: Location Screensaver Themes TAB Advanced System Settings Computer Performance Settings Computer Name Data Execution Prevention Settings Hardware Settings System Protection Settings System Remote Settings

tpm.msc tpminit slui sdclt wincal dvdmaker migwiz wfs optionalfeatures journal winmail mblctr msra sidebar wuapp ADDENDA control desk.cpl,appearance@appearance control /name microsoft.personalization /page pagecolorization control /name microsoft.personalization /page pagewallpaper control desk.cpl,settings@settings control /name microsoft.defaultprograms /page pagefileassoc rundll32 shell32.dll,options_rundll 2 rundll32 shell32.dll,options_rundll 0 rundll32 shell32.dll,options_rundll 7 control desk.cpl,monitor,@monitor control powercfg.cpl,,3 control /name microsoft.poweroptions /page pagecreatenewplan control /name microsoft.poweroptions /page pageplansettings control /name microsoft.poweroptions /page pageglobalsettings control /name microsoft.regionalandlanguageoptions /page /p:”administrative” control /name microsoft.regionalandlanguageoptions /page /p:”keyboard” control /name microsoft.regionalandlanguageoptions /page /p:”location” control desk.cpl,screensaver,@screensaver control desk.cpl,themes,@themes COMMAND systempropertiesadvanced systempropertiesperformance systempropertiescomputername systempropertiesdataexecutionprevention systempropertieshardware systempropertiesprotection systempropertiesremote

71

72

73 74

[“Advanced System Property” with a specific tab] 75 76 77 78 79 80 81

References:

Command removed or not available in Windows 7 and Windows Server 2008 R2.

  1. 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”.

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

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

Windows Command Guide 2011

41 42 43 44 45 46 47 48 49 01 02 03 04 05 06

Windows Easy Transfer Report Windows Firewall Windows Media Center Windows Media Player Windows PowerShell Windows PowerShell (ISE) Windows Virtual PC WMI Control Console XPS Viewer 3D Text Screen Saver Blank Screen Saver Bubbles Screen Saver Mystify Screen Saver Photos Screen Saver Ribbons Screen Saver

migwiz/postmig firewall.cpl ehome/ehshell mplayer2 powershell powershell_ise vmwindow wmimgmt.msc xpsrchvw Miscellaneous sstext3d.scr scrnsave.scr bubbles.scr mystify.scr photoscreensaver.scr 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.] SL. APPLICATION / TOOL COMMAND domain.msc 01 Active Directory Domains and Trusts dcpromo Active Directory installation (Directory Service) 02 dssite.msc 03 Active Directory Sites and Services dsa.msc 04 Active Directory Users and Computers adsiedit.msc 05 ADSI Edit certsrv.msc 06 Certification Authority (CA) nwc.cpl 07 Client Service for Netware cluadmin 08 Cluster Administrator dcomcnfg 09 Component Services compmgmt.msc 10 Computer Management Console cys 11 Configure Your Server Wizard 12 Connection Manager Administration Kit (CMAK) cmak dfsgui.msc 13 Distributed File System (DFS) dnsmgmt.msc 14 Domain Name System (DNS) dhcpmgmt.msc 15 Dynamic Host Configuration Protocol (DHCP) eventvwr.msc 16 Event Viewer filesvr.msc 17 File Server Management ias.msc 18 Internet Authentication Service (IAS) iis.msc 19 Internet Information Services (IIS) Manager llsmgr 20 Licensing smsrc.cpl Microsoft SMS (Control Panel Applet) 21 nlbmgr 22 Network Load Balancing (NLB) Manager netmon/netmon 23 Network Monitor odbcad32 24 ODBC Data Source Administrator odbccp32.cpl 25 ODBC Data Source Administrator p3server.msc 26 POP3 Service smspdm.cpl 27 Program Download Monitor (SCCM) tsmmc.msc 28 Remote Desktops Console rsadmin.msc 29 Remote Storage Console rrasmgmt.msc 30 Routing and Remote Access Console smarap.cpl 31 Run Advertised Programs (SCCM) scw 32 Security Configuration Wizard services.msc 33 Services nfsmgmt.msc 34 Services for Network File System (NFS) smscfgrc.cpl Systems Management (SMS 2003) 35 licmgr 36 Terminal Server Licensing tscc.msc 37 Terminal Services Configuration tsadmin 38 Terminal Services Manager serverappliance/securelaunch.vbs 39 Web Interface for Remote Administration wdsmgmt.msc 40 Windows Deployment Services (WDS) risetup 41 Windows Deployment Services Legacy

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

Windows Command Guide 2011

42

43 44 45 46 47 48 49 50 51 52 53 54 55 56

winsmgmt.msc ADDENDA [IP Configuration (ipconfig.exe) usage see (Appendix-A5] ipconfig /showclassid IP Config: display all the DHCP Class ID ipconfig /showclassid6 IP Config: display all the Ipv6 DHCP Class ID ipconfig /displaydns IP Config: display DNS resolver cache ipconfig /all IP Config: display full configuration information ipconfig /setclassid IP Config: modifies DHCP Class ID ipconfig /setclassid6 IP Config: modifies the Ipv6 DHCP Class ID ipconfig /flushdns IP Config: purges the DNS Resolver cache ipconfig /registerdns IP Config: refreshes DHCP & re-registers DNS ipconfig /release IP Config: release Ipv4 address for the adapter ipconfig /release6 IP Config: release Ipv6 address for the adapter ipconfig /allcompartments /renew IP Config: renew address for all the adapter ipconfig /renew IP Config: renew Ipv4 address for the adapter ipconfig /renew6 IP Config: renew Ipv6 address for the adapter ipconfig /allcompartments /all IP Config: display all adapter Configuration WINS

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.] SL. 001 002 003 004 006 005 007 008 009 010 011 012 013 014 015 016 018 019 020 021 023 022 024 025 026 027 017 028 029 030 031 032 033 034 035 036 037 038 APPLICATION / UTILITY 7-Zip ABBYY FineReader 10 Professional AC97 Audio Configuration ACDSee Canvas 11 ACDSee Canvas 12 with GIS plus ACDSee FotoSlate v4 ACDSee Photo Manager 2008 v10 ACDSee Photo Manager 2009 v11 ACDSee Photo Manager v12 (2010) ACDSee Picture Frame Manager v1 ACDSee Pro v2 (by ACDSee) ACDSee Pro v2.5 ACDSee Pro v3 ACDSee Pro v4 ACDSee Showroom (slideshow) Acrobat Distiller (by Adobe) Adobe Acrobat Adobe Bridge CS5 Adobe Captivate 5 Adobe Contribute CS5 Adobe Dreamweaver CS5 Adobe Fireworks CS5 Adobe Flash Builder v4.0 Adobe Flash Professional CS5 Adobe FlashPaper Adobe Illustrator CS5 Adobe ImageReady CS Adobe InDesign CS5 (formerly PageMaker) Adobe LiveCycle Designer Adobe PageMaker 6.5 Adobe PageMaker 7 (now InDesign CS) Adobe Photoshop CS5 Extended Adobe Reader (both x86 and x86) Alcohol 120% / Alcohol 50% Apple iTunes (Media Player) Apple QuickTime (by Apple Inc.) Apple QuickTime (Control Panel settings) Babylon (Dictionary) COMMAND 7zfm finereader alsndmgr.cpl canvas11 canvas12 fotoslate4 acdsee10 acdsee11 acdsee12 acdseepfm acdseepro2 acdseepro25 acdseepro3 acdseepro4 acdseesr acrodist acrobat bridge adobecaptivate contribute dreamweaver fireworks flashbuilder flash flashprinter illustrator imageready indesign formdesigner pm65 pm70 photoshop acrord32 alcohol itunes quicktimeplayer quicktime.cpl babylon - 11 © 2011, BCDALAI's Free Tech. Support Blog �

Windows Command Guide 2011

039 040 041 042 043 044 045 046 047 048 049 050 051 052 053 054 055 056 057 058 059 060 061 062 063 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095 096 097 098 099 101 102 100

BitComet BS Player Pro Calibre - E-book management (by Calibre) CCleaner (by Piriform) CodeSmith Explorer CodeSmith Professional ConceptDraw Office PRO 8 Copernic Desktop Search Corel Presentations X4 (Presentation) Corel Presentations X5 (Presentation) Corel Quattro Pro X4 (Spreadsheet)) Corel Quattro Pro X5 (Spreadsheet)) Corel WordPerfect MAIL (E-mail client) Corel WordPerfect X4 (Word Processor) Corel WordPerfect X5 (Word Processor) Corel WordPerfect XML Project Designer (X4) Corel WordPerfect XML Project Designer (X5) CyberLink LabelPrint CyberLink Power2Go CyberLink PowerBackup CyberLink PowerDVD Defraggler (by Piriform) DELL Webcam Center DELL Webcam Manager DirectX Control Panel Easy BCD 2 Eudora (E-mail Client) FastStone Capture FastStone Image Viewer GetRight (Download Manager) Google Chrome (browser) IncrediMail 2 (E-mail Client) Intel Graphics and Media Control Panel Intel Graphics Controller Properties Intel TV Wizard InterVideo WinDVD IsoBuster Java Control Panel (not in Win7) LibreOffice (by LibreOffice) LibreOffice Base (Database) LibreOffice Base (Database) LibreOffice Calc (Spreadsheet) LibreOffice Calc (Spreadsheet) LibreOffice Draw (Drawing) LibreOffice Draw (Drawing) LibreOffice Impress (Presentation) LibreOffice Impress (Presentation) LibreOffice Math (Formula) LibreOffice Math (MathFormula) LibreOffice Writer (Text) LibreOffice Writer (Web Page) LibreOffice Writer (Word Processor) Macromedia Fireworks (by Adobe) Malicious Software Removal Tool (MSRT) Malwarebytes‟ Anti-Malware Media Go (by Sony) Media Player Classic (old version) Media Player Classic Home Cinema Microsoft iSCSI Initiator Microsoft Access Microsoft ActiveSync Microsoft Application Verifier v4 Microsoft Excel Microsoft FrontPage

bitcomet bsplayer calibre ccleaner codesmith codesmithstudio cdpro8 desktopsearch prwin14 prwin15 qpw qpw15 wpmail wpwin14 wpwin15 wpldes14 wpldes15 labelprint power2go powerbackup powerdvd defraggler livecamde dellwmgr directx.cpl easybcd eudora fscapture fsviewer getright chrome incmail gfxui igfxcfg tvwizard2ft windvd isobuster javacpl.cpl soffice sbase soffice -base scalc soffice -calc sdraw soffice -draw simpress soffice -impress soffice -math smath soffice -writer soffice -web swriter fireworks mrt mbam mediago mplayerc mpc-hc iscsicpl.cpl msaccess wcesmgr appverif excel frontpg

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

Windows Command Guide 2011

103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166

Microsoft InfoPath Microsoft Office Document Imaging Microsoft Office Groove Microsoft Office Picture Manager Microsoft OneNote Microsoft Outlook (E-mail client) Microsoft PowerPoint Microsoft Publisher Microsoft SharePoint Workspace 2010 Microsoft Streets and Trips Microsoft Word Microsoft Works Calendar Microsoft Works Database Microsoft Works Portfolio Microsoft Works Spreadsheet Microsoft Works Task Launcher Microsoft Works Word Processor Mozilla Firefox Mozilla Firefox (Safe Mode) Mozilla Sunbird v1 Mozilla Thunderbird v3.1 MPCStar (Media Player) MSN Explorer Nero BackItUp (by Nero) Nero Burning ROM Nero BurnRights Nero Express Nero Home Nero ImageDrive Nero MediaHome Nero PhotoSnap Viewer Nero Recode Nero Scout Nero ShowTime Nero SoundTrax Nero Vision Nero Wave Editor NitroPDF Professional 6 Norton 360 (by Symantec) Norton Antivirus (Full System Scan) Norton Ghost Nview Desktop Manager (NVIDIAnView) OpenOffice.org (by OpenOffice) OpenOffice.org Base (Database) OpenOffice.org Base (Database) OpenOffice.org Calc (Spreadsheet) OpenOffice.org Calc (Spreadsheet) OpenOffice.org Draw (Drawing) OpenOffice.org Draw (Drawing) OpenOffice.org Impress (Presentation) OpenOffice.org Impress (Presentation) OpenOffice.org Math (Formula) OpenOffice.org Math (MathFormula) OpenOffice.org Writer (Text) OpenOffice.org Writer (Web Page) OpenOffice.org Writer (Word Processor) Oracle SQL Plus OriginPro 8 PerfectDisk Professional (by Raxco) QuarkXPress 8 QuickHeal Internet Security QuickHeal Total Security RealPlayer (also RealPlayer SP) RealPlayer SP Converter

infopath mspview groove ois onenote outlook powerpnt mspub groove streets winword wkscal wksdb wkssb wksss msworks wkswp firefox firefox -safe-mode sunbird thunderbird mpcstar msn6 backitup nero neroburnrights nero /w nerohome imagedrive neromediahome photosnapviewer recode neroscoutoptions showtime soundtrax nerovision waveedit nitropdf mainstub navw32 /a vproconsole nvtuicpl.cpl soffice sbase soffice -base scalc soffice -calc sdraw soffice -draw simpress soffice -impress soffice -math smath soffice -writer soffice -web swriter sqlplusw origin8 perfectdisk quarkxpress scanner scanner realplay realconverter

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

Windows Command Guide 2011

167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229

rtsndmgr.cpl Realtek HD Audio Manager recuva Recuva (by Piriform) revouninstaller Revo Uninstaller revouninpro Revo Uninstaller Pro safari Safari 5 (by Apple Inc.) seamonkey -mail SeaMonkey Mail seamonkey SeaMonkey v2 pccompanion Sony Ericsson PC Companion sepcsuite Sony Ericsson PC Suite speccys Speccy (by Piriform) soffice StarOffice (by Oracle) sbase StarOffice Base (Database) scalc StarOffice Calc (Spreadsheet) sdraw StarOffice Draw (Drawing) simpress StarOffice Impress (Presentation) smath StarOffice Math (formula) swriter StarOffice Writer (Word Processor) tweakui Tweak UI vmplayer Vmware Player vmware -l Vmware Virtual Machine Console vmware Vmware Workstation winamp Winamp amui Windows Intune Malware Protection wlstartup Windows Live Essentials(Appendix-A6) fsui Windows Live Family Safety wlmail Windows Live Mail (by Microsoft) wlsync Windows Live Mesh msnmsgr Windows Live Messenger moviemaker Windows Live Movie Maker 2011 wlxphotogallery Windows Live Photo Gallery 2011 windowslivewriter Windows Live Writer 2011 wmenc Windows Media Encoder 9 Series pbadmin Windows Phone Book Administrator powercalc Windows PowerToy Calculator winrar WinRAR winzip WinZip wzipse32 WinZip Self-Extractor wireshark Wireshark xpsrchvw XPS Viewer EP (Appendix-A7) MISCELLANEOUS (APPS) TOOLS ac3filter.cpl AC3 Filter (settings) acdseesr ACDSee 2009 Showroom (v11) acdseesr12 ACDSee 2010 Showroom (v12) devdetect ACDSee Device Detector acdseephotoeditor2008 ACDSee Photo Editor 2008 v5 acdseephotoeditor4 ACDSee Photo Editor v4 acdseeqvpfm ACDSee Picture Frame Manager Quick View acdseeqvpro4 ACDSee Pro 4 Quick View flashplayercplapp.cpl Adobe Flash Player 10.3 ebook-viewer Calibre E-book viewer lrfviewer Calibre LRF viewer statechangediag Change Analysis Diagnostic (WinXP) pfim140 Corel QuickFinder Manager X4 (by Corel) pfim150 Corel QuickFinder Manager X5 qfinder140 Corel QuickFinder Searcher X4 qfinder150 Corel QuickFinder Searcher X5 convutil Corel WordPerfect Office Conversion Utility ct4im Creative Live Cam Avatar ctiemain Creative Live Cam Avatar Creator lightscribecontrolpanel Light Scribe Control Panel power2goexpress LG Burning Tool (powered by Power2Go) uistub Norton Antivirus 2007 mcui32 Norton Antivirus 2010: Security History qconsole Norton Antivirus Quarantine Console

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

Windows Command Guide 2011

dexplore 230 Visual Studio Document Explorer vsta 231 Visual Studio Tools for Applications langselector 232 Windows Live Essentials Language Selecter wlarp 233 Windows Live Essentials Repair (2011) xqdcxspstart 234 X-Setup Pro [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/subfeature for those corresponding apps. The actual command is program.exe, but you can issue the command with just program and without .exe. OpenOffice.org, 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.] SL. CONTROL PANEL SETTING 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 Add Hardware Administrative Tools Advanced Network Sharing Settings AutoPlay Backup and Restore Center BitLocker Drive Encryption Color Management Date and Time Default Programs Device Manager Display Ease of Access Center Folder Options Fonts Game Controllers Indexing Options Infrared Internet Options iSCSI Initiator Keyboard Settings Mouse Network Sharing Center Offline Files Parental Controls Pen and Input Devices People Near Me Performance Information and Tools Personalization Phone and Modems Power Options Printers Problems Reports and Solutions Programs and Feature Regional and Language Options Scanners and Cameras Sound Speech Recognition Options Sync Center System Tablets PC Settings Tablets PC Settings Buttons Taskbars and Start Menu COMMAND control /name Microsoft.AddHardware control /name Microsoft.AdministrativeTools control /name Microsoft.NetworkandSharingCenter /page Advanced control /name Microsoft.AutoPlay control /name Microsoft.BackupAndRestoreCenter control /name Microsoft.BitlockerDriveEncryption control /name Microsoft.ColorManagement control /name Microsoft.DateAndTime control /name Microsoft.DefaultPrograms control /name Microsoft.DeviceManager control /name Microsoft.Display control /name Microsoft.EaseOfAccessCenter control /name Microsoft.FolderOptions control /name Microsoft.Fonts control /name Microsoft.GameControllers control /name Microsoft.IndexingOptions control /name Microsoft.InfraredOptions control /name Microsoft.InternetOptions control /name Microsoft.iSCSIInitiator control /name Microsoft.Keyboard control /name Microsoft.Mouse control /name Microsoft.NetworkandSharingCenter control /name Microsoft.OfflineFiles control /name Microsoft.ParentalControls control /name Microsoft.PenAndInputDevices control /name Microsoft.PeopleNearMe control /name Microsoft.PerformanceInformationAndTools control /name Microsoft.Personalization control /name Microsoft.PhoneAndModemsOptions control /name Microsoft.PowerOptions control /name Microsoft.Printers control /name Microsoft.ProblemsReportsAndSolutions control /name Microsoft.ProgramsAndFeature control /name Microsoft.RegionalAndLanguageOptions control /name Microsoft.ScannersAndCameras control /name Microsoft.AudioDevicesAndSoundThemes control /name Microsoft.SpeechRecognitionOptions control /name Microsoft.SyncCenter control /name Microsoft.System control /name Microsoft.TabletsPCSettings control /name Microsoft.TabletsPCSettings /page Buttons control /name Microsoft.TaskbarsAndStartMenu - 15 © 2011, BCDALAI's Free Tech. Support Blog

Windows Vista / Windows Server 2008 �

Windows Command Guide 2011

43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77

Text to Speech User Accounts Welcome Center Windows Anytime Upgrade Windows CardSpace Windows Defender Windows Firewall Windows Marketplace Windows Mobility Center Windows Security Center Windows Sidebar Properties Windows SideShow Windows Update Action Center Backup and Restore Biometric Devices Credential Manager Default Location Desktop Gadgets Devices and Printer Get Programs (online) Getting Started HomeGroup Infrared Location and Other Sensors Notification Area Icons Pen and Touch Phone and Modem Recovery (Appendix-A8) Region and Language RemoteApp and Desktop Connections Sound Speech Recognition Taskbar and Start Menu Troubleshooting

control /name Microsoft.TextToSpeech control /name Microsoft.UserAccounts control /name Microsoft.WelcomeCenter control /name Microsoft.WindowsAnytimeUpgrade control /name Microsoft.CardSpace control /name Microsoft.WindowsDefender control /name Microsoft.WindowsFirewall control /name Microsoft.GetProgramsOnline control /name Microsoft.MobilityCenter control /name Microsoft.SecurityCenter control /name Microsoft.WindowsSidebarProperties control /name Microsoft.WindowsSideshow control /name Microsoft.WindowsUpdate control /name Microsoft.ActionCenter control /name Microsoft.BackupAndRestore control /name Microsoft.BiometricDevices control /name Microsoft.CredentialManager control /name Microsoft.DefaultLocation control /name Microsoft.DesktopGadgets control /name Microsoft.DevicesAndPrinter control /name Microsoft.GetPrograms control /name Microsoft.GettingStarted control /name Microsoft.HomeGroup control /name Microsoft.Infrared control /name Microsoft.LocationAndOtherSensors control /name Microsoft.NotificationAreaIcons control /name Microsoft.PenAndTouch control /name Microsoft.PhoneAndModem control /name Microsoft.Recovery control /name Microsoft.RegionAndLanguage control /name Microsoft.RemoteAppAndDesktopConnections control /name Microsoft.Sound control /name Microsoft.SpeechRecognition control /name Microsoft.TaskbarAndStartMenu control /name Microsoft.Troubleshooting

Windows 7 / Windows Server 2008 R2

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 SL. 001 002 003 COMMANDS append arp at COMMAND USAGES Allows programs to open data files in specified directories as if they were in the current directory. Displays and modifies the IP-to-Physical address translation tables used by address resolution protocol (ARP). 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 command. Windows ATM Call Manager Utility. Attribute Utility. Displays or changes file attributes. Audit User Program. Sets per user auditing policy. 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. Microsoft Blaster/Nachi removal tool. Control ACLs Program. Displays or modifies access control lists of files. Check Disk Utility. Checks a disk for logical file system error and displays a status report. NTFS Volume Maintenance Utility. Displays or modifies the checking of disk at boot time. File Encryption Utility. Displays or alters the encryption of directories [files] on - 16 © 2011, BCDALAI's Free Tech. Support Blog

004 005 006 007

atmadm attrib auditusr bootcfg

008 009 010 011 012

blastcln cacls chkdsk chkntfs cipher �

Windows Command Guide 2011

013 014 015 016 017 018 019 020

cmd comp compact convert cscript defrag diantz diskpart

021 022 023 024 025 026 027 028 029

diskperf doskey driverquery edlin esentutl eventcreate eventtriggers exe2bin expand

030 031 032 033 034 035 036 037

fc find findstr finger fltmc forcedos fsutil ftp

038 039 040 041 042

getmac gpresult gpupdate help ipconfig

043 044 045 046 047 048 049 050 051 052 053

ipsec6 ipv6 ipxroute label lodctr logman logoff lpd lpr makecab mmcperf

NTFS partitions. Windows Command Processor. Performs text-based (command-line) functions. File Compare Utility. Compares the contents of two files or sets of files. File Compress Utility. Displays or alters the compression of files on NTFS partitions. File System Conversion Utility. Converts FAT volumes to NTFS. Windows Script Host command line mode. Disk Defragmenter Module. Disk defragmenter commands-line tool. Microsoft Cabinet Maker. 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. Disk Performance Configuration Utility. Keyboard History Utility. Edits command lines, recalls Windows XP commands and creates macros. Driver Query. Enables an administrator to enumerate and display the list of installed device drivers as well as their properties. Edlin. A line-oriented text editor. Server Database Storage Utilities. Maintenance utilities for Microsoft Windows databases. Event Create. This command line tool enables an administrator to create a custom event ID and message in a specified event log. Event Triggers. This command-line tool enables an administrator to display and configure “Event Triggers” on local or remote system. Converts .EXE (executable) files to binary format. LZ Expansion Utility. Microsoft File Expansion Utility. Expands one or more compressed files. This command is used to retrieve compressed files from distribution disks. DOS 5 File Compare Utility. Compares two files or sets of files and displays the differences between them. 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. Searches for strings in files. TCPIP Finger Command. Displays information about a user on a specified system running the Finger service. Output varies based on the remote system. Filter Manager Control Program. Force DOS Execute Utility. File system management utility. File Transfer Program. Uploads/downloads files on a network. This command helps you determine whether Application layer functions can work on the network. Get MAC Address. This command line tool enables an administrator to display the MAC address for one or more network adapters on a system. Query RSOP Data. Group Policy Result tool. Microsoft Group Policy Refresh Utility. Refreshes Policy settings. Command Line Help Utility for Windows XP commands. 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. IPv6 Security Configuration Utility. (Not for Windows 7 or later). IPv6 Configuration Utility. (Not for Windows 7 or later). NWLink IPX Routing and Source Routing Control Program. Disk Label Utility. Creates, changes, or deletes the volume label of a disk. Updates Performance Monitor counter names and explain text for an extensible counter. Logman manages the “Performance Logs and Alerts” service for creating and managing Event Trace, Session logs and Performance logs. Session Logoff Utility. TCP/IP Lpq Command. Displays the state of a remote lpd queue. TCP/IP Lpr Command. Sends a print job to a network printer. Executes a print job on a network printer. Microsoft Cabinet Maker. MMC Performance Tool.

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

Windows Command Guide 2011

054 055 056 057 058

mountvol mqbkup mrinfo msg nbtstat

059 060 061

net netsh netstat

062 063 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079 080

nlsfunc nslookup openfiles pathping ping ping6 powercfg print proxycfg qappsrv qprocess qwinsta rasdial rcp recover reg regsvr32 regwiz relog

081 082 083

replace reset rexec

084 085 086 087 088 089 090 091 092 093 094 095 096 097 098

route rsm runas rwinsta sc schtasks secedit setver sfc shadow shutdown sort subst systeminfo taskkill

Mount Volume Utility. Creates, deletes, or lists a volume mount point. Windows NT, Microsoft Message Queue (MSMQ) Backup/Restore Utility. Multicast Information. Message Utility. Send a message to a user. 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. Windows net Command. Network Shell Command. Network Services shell Command. (See Chapter-3) 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. Loads country-specific information. Show and configure DNS information and settings. Checks DNS entries. Enables an administrator to list or disconnect files and folders that have been opened on a system. TCP/IP PathPing Command. TCP/IP Ping Command. Uses an echo command to establish whether packets can be routed at the Network layer on a network. Ipv6 Ping Command. (Not for Windows 7 or later). Power Settings Command-Line Tool. This command line tool enables an administrator to control the power settings on a system. Prints a text file. Microsoft WinHTTP Default Proxy Configuration Tool. Query Terminal Server Utility. Displays the available application terminal servers on the network. Query Process Utility. Displays information about processes. Display information about Terminal Sessions. Remote Access Client Side Command Line Dial UI. Copies files to and from computer running the RCP service. Recover Files Utility. Recovers readable information from a bad or defective disk. Registry Console Tool. Console Registry Tool for Windows. Microsoft Register Server. This command-line tool registers .dll files as command components in the registry. Windows XP Registration Wizard. Use /r switch to register Windows. 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. Replace File Utility. Replaces files. Terminal Services Reset Utility. 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. Manipulates network routing tables. Removable Storage Manager Command Line Interface. Run As Utility. Reset Session Utility. Reset the session subsystem hardware and software to known initial values. 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. Schedule Tasks. Enables an administrator to create, delete, query, change, run and end scheduled tasks on a local or remote system. Replaces at.exe. Windows Security Configuration Editor Command Tool. Sets the version number that MS-DOS report to a program. Windows XP Windows File Checker. Scans all protected system files and replaces incorrect versions with correct Microsoft versions. Monitor another Terminal Services session. Windows Remote Shutdown Tool. Sort Utility. Associates a path with a drive letter. System Information. This command line tool enables an administrator to query for basic system configuration information. 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 100

tasklist telnet

101 102 103

tftp tlntadmn tracerpt

104 105 106 107 108 109 110 111 112 113 114 115 116 117 118

tracert tracert6 tscon tsdiscon tskill tsshutdn typeperf tzchange unlodctr vssadmin w32tm winmsd winver wscript xcopy

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. 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. Trivial File Transfer Protocol App. Transfers files to and from a remote computer running the TFTP service. Telnet Administration. Telnet Server Admin Tool. 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. TCP/IP Traceroute Command. Shows all the routing hops that a packet takes to reach a destination on a network. Ipv6 Traceroute Command. (Not for Windows 7 or later). Session Connection Utility. Attaches a user session to a terminal session. Session Disconnection Utility. Disconnects a terminal session. Terminal Services End Process Utility. Ends a process. System Shutdown Utility. Shut down a server in a controlled manner. Command line performance monitor. Typeperf writes performance data to the command window or to a log file. To stop Typeperf, press CTRL+C. Time zone change tool. A command Line utility to make time zone changes. Unload PerfMon Counters. Removes counter names and explain text for the specified extensible counter. Command Line Interface for Microsoft Volume Shadow Copy Service. Windows Time Service Diagnostic Tool. System Information. Replaced by msinfo32.exe. Windows Version Checking Tool. Windows Script Host GUI mode. 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 SL. 01 02 03 04 05 06 07 08 09 10 11 12 COMMANDS auditpol bcdboot bcdedit bitsadmin change chglogon chgport chgusr choice clip cmdkey diskpart COMMAND USAGES Configure, create, backup and restore audit policies on any computer in the organization from the command line with verbose logging. Replaces auditusr.exe. Used to initialize the Boot Configuration Data (BCD) store and copy boot environment files to the system partition. Edit the Boot Configuration Data Store. BITS administration utility. Change terminal server settings for logons, COM port mappings and install mode. Enable or disable session logons. List or change COM port mappings for DOS application compatibility. Change install mode. Allow users to select one item from a list of choices and return the index of the selected choice. Redirect the output of command-line tools to the Windows Clipboard. Create, display, and delete stored user names and passwords. 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 partition. Launch the diskraid application. Display diagnostics information. Select a file (or files) and execute a command on that file. Display or modify access control lists (ACLs) of files; an updated version of cacls. The Microsoft iSCSI Initiator. Windows Disc Image Burning Tool. Used to manage BitLocker encrypted volumes. Create, modify and delete junctions, hard links, and symbolic links. The MUI Unattended Action. The WinPE Network Installer. The Windows Optional Component Setup. - 19 © 2011, BCDALAI's Free Tech. Support Blog

13 14 15 16 17 18 19 20 21 22 23

diskraid dispdiag forfiles icacls iscsicli isoburn manage-bde mklink muiunattend netcfg ocsetup �

Windows Command Guide 2011

24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39

pkgmgr pnpunattend pnputil query quser robocopy rpcping sdbinst setx sxstrace takeown timeout tracerpt tzutil verifier waitfor

40 41 42 43 44

wbadmin wceutil wevtutil where whoami

45 46 47

winrm winrs winsat

The Windows Package Manager. Used for unattended online driver installation. PnPUtil Tool. The Microsoft Plug and Play (PnP) Utility. Query command. Syntax {Process|Session|TermServer|User}. Display information about users logged on to the system. 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. Ping a server using Remote Procedure Call (RPC). Application Compatibility Database Installer tool. Create or modify environment variables in the user or system environment. The WinSxs tracing utility. Recover access to a file that was denied by reassigning file ownership. Accept a timeout parameter to wait for the specified time period or until any key is pressed. The TraceRpt tool. Windows Time Zone Utility. Driver Verifier Monitor. The driver verification tool. 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. Start the backup tool. The Windows Event Collector Utility. The Windows Event command-line Utility. Display the location of files that match the search pattern. 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). The Windows Remote Management tool (WinRM). Windows Remote Shell (WinRS) allows establishing secure Windows Remote Management sessions to multiple remote computers from a single console. 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 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 Accessibility Options rundll32 shell32.dll,Control_RunDLL access.cpl Add/Remove Programs: (Change or Remove Programs) rundll32 shell32.dll,Control_RunDLL appwiz.cpl,,0 Add/Remove Programs: (Add New Programs) rundll32 shell32.dll,Control_RunDLL appwiz.cpl,,1 Add/Remove Programs: (Add/Remove Windows Components) rundll32 shell32.dll,Control_RunDLL appwiz.cpl,,2 Add/Remove Programs: (Set Programs Access and Defaults) * rundll32 shell32.dll,Control_RunDLL appwiz.cpl,,3 Desktop Property: Themes Tab rundll32 shell32.dll,Control_RunDLL desk.cpl Desktop Property: Desktop Tab rundll32 shell32.dll,Control_RunDLL desk.cpl,,0 Desktop Property: Screen Saver Tab rundll32 shell32.dll,Control_RunDLL desk.cpl,,1 Desktop Property: Appearance Tab rundll32 shell32.dll,Control_RunDLL desk.cpl,,2 Desktop Property: Settings Tab rundll32 shell32.dll,Control_RunDLL desk.cpl,,3 Device Manager rundll32 devmgr.dll DeviceManager_Execute Folder Options rundll32 shell32.dll,Options_RunDLL Forgotten Password Wizard(Create a password reset disk) rundll32 keymgr.dll,PRShowSaveWizardExW Game Controller rundll32 Shell32.dll,Control_RunDLL joy.cpl Hibernate rundll32 powrprof.dll,SetSuspendState IE –Content Advisor rundll32 msrating.dll,RatingSetupUI Control Panel rundll32 shell32.dll,Control_RunDLL IE –Delete All (Browsing History – IE7 or later) rundll32 InetCpl.cpl,ClearMyTracksByProcess 255 IE –Delete Cookies rundll32 InetCpl.cpl,ClearMyTracksByProcess 2 IE –Delete Form Data rundll32 InetCpl.cpl,ClearMyTracksByProcess 16 IE –Delete Files and Settings Stored by Add-Ons rundll32 InetCpl.cpl,ClearMyTracksByProcess 4351 IE –Delete History rundll32 InetCpl.cpl,ClearMyTracksByProcess 1 IE –Delete Passwords rundll32 InetCpl.cpl,ClearMyTracksByProcess 32 IE –Delete Temporary Internet Files rundll32 InetCpl.cpl,ClearMyTracksByProcess 8 Lock Screen (Lock Computer) rundll32 user32.dll,LockWorkStation Map Network Drives rundll32 Shell32.dll,SHHelpShortcuts_RunDLL Connect

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

Windows Command Guide 2011

27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59

Mouse Properties Dialog Box: Buttons tab rundll32 Shell32.dll,Control_RunDLL main.cpl @0,0 Mouse Properties Dialog Box: Pointers tab rundll32 Shell32.dll,Control_RunDLL main.cpl @0,1 Mouse Properties Dialog Box: Pointers Options tab rundll32 Shell32.dll,Control_RunDLL main.cpl @0,2 Mouse Properties Dialog Box: Wheel tab rundll32 Shell32.dll,Control_RunDLL main.cpl @0,3 Mouse Properties Dialog Box: Hardware tab rundll32 Shell32.dll,Control_RunDLL main.cpl @0,4 Mouse Button: Changing Left-to-Right and vice versa rundll32 User32.dll,SwapMouseButton Network Connections rundll32 shell32.dll,Control_RunDLL ncpa.cpl Network Setup Wizard (i.e. network / internet / VPN) rundll32 hnetwiz.dll,HomeNetWizardRunDll New Connections Wizard rundll32 netshell.dll,StartNCW Organize Favorites rundll32 shdocvw.dll,DoOrganizeFavDlg Phone and Modem options rundll32 Shell32.dll,Control_RunDLL telephon.cpl Power Options rundll32 Shell32.dll,Control_RunDLL powercfg.cpl Printer and Faxes folder rundll32 Shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder Regional and Language Options: Regional Options tab rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,0 Regional and Language Options: Languages tab rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,1 Regional and Language Options: Advanced tab rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,2 Safely Remove Hardware rundll32 Shell32.dll,Control_RunDLL HotPlug.dll Sound and Audio Device Properties: Volume tab rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,0 Sound and Audio Device Properties: Sounds tab rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,1 Sound and Audio Device Properties: Audio tab rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,2 Sound and Audio Device Properties: Voice tab rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,3 Sound and Audio Device Properties: Hardware tab rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,4 Stored Username and Passwords rundll32 keymgr.dll,KRShowKeyMgr System Properties: General tab rundll32 shell32.dll,Control_RunDLL sysdm.cpl System Properties: Computer Name tab rundll32 Shell32.dll,Control_RunDLL Sysdm.cpl,,1 System Properties: Hardware tab rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,2 System Properties: Advanced tab rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,3 System Properties: System Restore tab rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,4 System Properties: Automatic Updates tab rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,5 System Properties: Remote tab rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,6 System Properties: Performance (Visual Effects) rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,-1 Taskbar Properties rundll32 shell32.dll,Options_RunDLL 1 Time and Date

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

Windows Command Guide 2011

60 61 62 63 64 65 66

rundll32 Shell32.dll,Control_RunDLL timedate.cpl User Accounts rundll32 shell32.dll,Control_RunDLL nusrmgr.cpl Windows Firewall rundll32 shell32.dll,Control_RunDLL firewall.cpl Windows Fonts folder rundll32 Shell32.dll,SHHelpShortcuts_RunDLL FontsFolder Wireless Network Setup Wizard rundll32 wzcdlg.dll,FlashConfigCreateNetwork Wireless Network Setup Wizard rundll32 shell32.dll,Control_RunDLL NetSetup.cpl,@0,WNSW Windows Security Center rundll32 shell32.dll,Control_RunDLL wscui.cpl Windows Update rundll32 Shell32.dll,Control_RunDLL wuaucpl.cpl

Internet Explorer 8(deleting IE data) 67 68 69 70 71 72 73 74 IE –Delete All Browsing History rundll32 InetCpl.cpl,ClearMyTracksByProcess 255 IE –Delete Cookies rundll32 InetCpl.cpl,ClearMyTracksByProcess 258 IE –Delete Form Data rundll32 InetCpl.cpl,ClearMyTracksByProcess 272 IE –Delete History rundll32 InetCpl.cpl,ClearMyTracksByProcess 449 IE –Delete InPrivate Data rundll32 InetCpl.cpl,ClearMyTracksByProcess 2304 IE –Delete Passwords rundll32 InetCpl.cpl,ClearMyTracksByProcess 288 IE –Delete Temporary Internet Files rundll32 InetCpl.cpl,ClearMyTracksByProcess 264 IE – Preserve Favorite Website Data rundll32 InetCpl.cpl,ClearMyTracksByProcess 8448

Windows Vista / Server 2008 / 2008 R2 / Windows 7 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Add/Remove Programs: (Programs and Features) rundll32 shell32.dll,Control_RunDLL appwiz.cpl,,0 Add/Remove Programs: (Turn Windows Features On or Off) rundll32 shell32.dll,Control_RunDLL appwiz.cpl,,2 Add/Remove Programs: (Set Programs Access and Computer Defaults) rundll32 shell32.dll,Control_RunDLL appwiz.cpl,,3 Desktop Property: Desktop Icons tab rundll32 shell32.dll,Control_RunDLL desk.cpl,,0 Desktop Property: Screen Saver Settings tab rundll32 shell32.dll,Control_RunDLL desk.cpl,,1 Desktop Property: Appearance Settings (Win7: Personalization) rundll32 shell32.dll,Control_RunDLL desk.cpl,,2 Desktop Property: Monitor Settings (Win7: Screen Resolution) rundll32 shell32.dll,Control_RunDLL desk.cpl,,3 Device Installation Settings rundll32 newdev.dll,DeviceInternetSettingUi Environment Variables rundll32 sysdm.cpl,EditEnvironmentVariables Folder Options: Folder searching tab rundll32 shell32.dll,options_rundll 2 Folder Options: General tab rundll32 shell32.dll,options_rundll 0 Folder Options: View tab rundll32 shell32.dll,options_rundll 7 Mouse Properties Dialog Box: Buttons tab rundll32 Shell32.dll,Control_RunDLL main.cpl @0,0 Mouse Properties Dialog Box: Pointers tab rundll32 Shell32.dll,Control_RunDLL main.cpl @0,1 Mouse Properties Dialog Box: Pointers Options tab rundll32 Shell32.dll,Control_RunDLL main.cpl @0,2 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 92 93 94 95 96 97 98

99 100 101 102 103 104 105 106 107 108 109 110 111 Notes: *

Mouse Properties Dialog Box: Hardware tab rundll32 Shell32.dll,Control_RunDLL main.cpl @0,4 Offline Files rundll32 Shell32.dll,Control_RunDLL cscui.dll Printer and Faxes folder (Win7: Printers) rundll32 Shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder Regional and Language Options: Format Options tab rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,0 Regional and Language Options: Location tab rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,1 Regional and Language Options: Keyboard and Language tab rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,2 Regional and Language Options: Administrative tab rundll32 Shell32.dll,Control_RunDLL Intl.cpl,,2 Set a printer as Default rundll32 printui.dll,PrintUIEntry /y /n printer_name (change printer_name to correct printer name e.g. PDFCreator) Sound and Audio Device Properties: Playback tab (Win7) rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,0 Sound and Audio Device Properties: Recording tab (Win7) rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,1 Sound and Audio Device Properties: Sounds tab (Win7) rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,2 Sound and Audio Device Properties: Communications tab (Win7) rundll32 Shell32.dll,Control_RunDLL Mmsys.cpl,,3 Stored Username and Passwords (Win7: Credential Manager) rundll32 keymgr.dll,KRShowKeyMgr System Properties: Computer Name Tab rundll32 shell32.dll,Control_RunDLL sysdm.cpl System Properties: Hardware tab rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,2 System Properties: Advance tab runDll32 shell32.dll,Control_RunDLL sysdm.cpl,,3 System Properties: System Protection tab rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,4 System Properties: Remote tab rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,5 User Profiles rundll32 sysdm.cpl,EditUserProfiles Windows Network Diagnostics rundll32 ndfapi,NdfRunDllDiagnoseIncident Windows Security Center (Win7: Action Center) rundll32 shell32.dll,Control_RunDLL wscui.cpl 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”.] Syntax netsh [-a AliasFile] [-c Context] [-r RemoteComputer] [{NetshCommand|-f ScriptFile}] Parameters -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 Example: netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 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 10.0.0.11, subnetmask, and gateway 10.0.0.11 for the interface Local Area Connection: netsh interface IPv4 set address "local area connection" static 10.0.0.11 255.255.255.0 10.0.0.11 Set DNS server address as 10.0.0.11: netsh interface ipv4 set dnsservers "local area connection" static 10.0.0.11 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. 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 Directory Location Common Program Files Current System Drive Current System Drive Current User Location Current User Location Dllcache Font Folder INF Directory Prefetch Folder Program Files System32 System32 Windows Windows All Users Location Environment Variable (Command) %CommonProgramFiles% %HOMEDRIVE% %SYSTEMDRIVE% %HOMEDRIVE%\%HOMEPATH% %HOMEPATH% dllcache Fonts inf Prefetch %PROGRAMFILES% %SYSTEMROOT%\system32 %WINDIR%\System32 %SYSTEMROOT% %WINDIR% For All Users %ALLUSERSPROFILE% - 26 © 2011, BCDALAI's Free Tech. Support Blog �

Windows Command Guide 2011

16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63

Common AppData Common Desktop Common Documents Common Favorites Common Programs Common Start Menu Common Startup Common Templates AppData AppData AppData Cache Cookies Cookies Current User Location Desktop Desktop Favorites Favorites History Local AppData Local Settings My Pictures NetHood NetHood Personal Documents Personal Documents PrintHood PrintHood Programs Recent Recent Send To Send To Start Menu Start Menu Startup Temp Temp Templates Templates Program Files Program Files Program Files (x86) Program Files (x86) program files (x86)\common files program files (x86)\common files program files\common files

%ALLUSERSPROFILE%\Application Data %ALLUSERSPROFILE%\Desktop %ALLUSERSPROFILE%\Documents %ALLUSERSPROFILE%\Favorites %ALLUSERSPROFILE%\Start Menu\Programs %ALLUSERSPROFILE%\Start Menu %ALLUSERSPROFILE%\Start Menu\Programs\Startup %ALLUSERSPROFILE%\Templates For Current User %AppData% %USERPROFILE%\Application Data Application Data %USERPROFILE%\Local Settings\Temporary Internet Files %USERPROFILE%\Cookies Cookies %USERPROFILE% %USERPROFILE%\Desktop Desktop %USERPROFILE%\Favorites Favorites %USERPROFILE%\Local Settings\History %USERPROFILE%\Local Settings\Application Data %USERPROFILE%\Local Settings %USERPROFILE%\My Documents\My Pictures %USERPROFILE%\NetHood NetHood %USERPROFILE%\My Documents My Documents %USERPROFILE%\PrintHood PrintHood %USERPROFILE%\Start Menu\Programs %USERPROFILE%\Recent Recent %USERPROFILE%\SendTo sendto %USERPROFILE%\Start Menu Start Menu %USERPROFILE%\Start Menu\Programs\Startup %TEMP% %TMP% %USERPROFILE%\Templates Templates

Windows 64-bit / x64 %ProgramFiles64% %ProgramW6432% %ProgramFiles32% %ProgramFiles32% %CommonProgramFiles% %CommonProgramFiles(x86)% %CommonProgramW6432% System Defaults SL. 01 02 03 04 05 06 07 Directory Location Font Folder Internet Explorer Recycle Bin System32 Windows Common AppData Common Documents Command shell:fonts shell:internetfolder shell:recyclebinfolder shell:system shell:windows For All Users shell:common appdata shell:common documents

Shell Commands

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

Windows Command Guide 2011

08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

Common Favorites Common Music Common Pictures Common Programs Common Start Menu Common Startup Common Templates Common Videos AppData Cache CD Burning Cookies Desktop Favorites My Music My Pictures My Videos NetHood Personal Documents PrintHood Profile Programs Recent Send To Start Menu Startup Templates

shell:common favorites shell:commonmusic shell:commonpictures shell:common programs shell:common start menu shell:common startup shell:common templates shell:commonvideo For Current User shell:appdata shell:cache shell:cd burning shell:cookies shell:desktop shell:favorites shell:my music shell:my pictures shell:my video shell:nethood shell:personal shell:printhood shell:profile shell:programs shell:recent shell:sendto shell:start menu shell:startup 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 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 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 %ALLUSERSPROFILE% In XP: C:\Documents and Settings\All Users 01 In Vista: C:\ProgramData %APPDATA% 02 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 %HOMEPATH% In XP: C:\Documents and Settings\{username} 03 In Vista: C:\Users\{username} %LOGONSERVER% 04 This variable Indicates the domain controller or the server that authenticated the client‟s logon request. %TEMP% In XP: C:\Documents and Settings\{username}\Local 05 Settings\Temp

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

Windows Command Guide 2011

06

07 08 09

10

11

12 13 14 15 16 17 18

19 20 21 22 23 24

25 26 27 28 29 30 31 32 33

34 35 36

37 38

In Vista: C:\Users\{username}\AppData\Local\Temp In XP: C:\Documents and Settings\{username}\Local Settings\Temp In Vista: C:\Users\{username}\AppData\Local\Temp %USERDOMAIN% The variable holds the name of the Workgroup or Windows Domain to which the current user belongs. %USERNAME% {Username}. This variable is to determine the active user‟s login identification. %USERPROFILE% In XP: C:\Documents and Settings\{username} In Vista: C:\Users\{username} System path Environment Variables %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 %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”. %COMMONPROGRAMFILES% Usually: C:\Program Files\Common Files %COMMONPROGRAMFILES(X86)% The default in Vista is: C:\Program Files (x86)\Common Files %COMPUTERNAME% {Computername} The NetBIOS name of the computer. %COMSPEC% Starts a new instance of the Windows XP command interpreter. C:\Windows\System32\cmd.exe %HOMEDRIVE% The drive where Windows is installed. Usually it is C:\ %HOMEPATH% In XP: C:\Documents and Settings\{username} In Vista: C:\Users\{username} %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. %NUMBER_OF_PROCESSORS% Quantity of CPUs installed in the system. %OS% For Windows NT „family‟ it is “Windows_NT” %PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32 \Wbem;{plus program paths} %PATHEXT% .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;. MSC %PROCESSOR_ARCHITECTURE% Indicates the chip architecture of the CPU e.g. x86 or x64. %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. %PROGRAMFILES(X86)% In 64-bit editions of Windows (XP, 2003, Vista etc.), this is C:\Program Files (x86) %PROGRAMW6432% In 64-bit editions of Windows (XP, 2003, Vista etc.), this is C:\Program Files %PROMPT% Code for current command prompt format. Code is usually $P$G %PUBLIC% Only for Vista or later. The default is: C:\Users\Public %SYSTEMDRIVE% The drive where Windows is installed. Usually it is C:\ %SYSTEMROOT% The default is: C:\Windowsand in Windows NT 3.1, Windows NT 4 and Windows 2000: C:\WINNT %USERDNSDOMAIN% The fully qualified DNS domain (FQDN) that the currently logged on user‟s account belongs to. %USERDOMAIN% Name of the domain that contains the user‟s account. %WINDIR% The default is: C:\Windowsand in Windows NT 3.1, Windows NT 4 and Windows 2000: C:\WINNT Discrete value Environment Variable %CD% Current directory with its full path %DATE% Current date in the format determined by the Date command %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. %RANDOM% Random number between 0 and 32767. %TIME% This point to the current time. Current time in the format %TMP%

- 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: http://bit.ly/9zaLjx] Sl. 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Environment Variable %10% %11% %12% %17% %18% %20% %21% %23% %24% %25% %30% %50% %51% %52% %53% %54% %55% %16406% %16407% %16408% %16409% %16415% %16419% %16422% %16425% %16426% %16427% %16428% Windows XP Embedded SP2 (with Feature Pack 2007) Path Example (Location) Windows System32 Drivers Inf Help Fonts Viewers Color Apps Shared Boot System16 Spool Spool drivers Userprofile Loader Printprocessor All Users\Start Menu All Users\Start Menu\Programs All Users\Start Menu\Programs\Startup All Users\Desktop All Users\Favorites All Users\Application Data Program Files System32 on RISC Program Files on RISC Program Files\Common x86 Program Files\Common on RISC All Users\Templates All Users\Documents All Users\Documents\My Music All Users\Documents\My Pictures C:\Windows C:\Windows\system32 C:\Windows\system32\drivers C:\Windows\inf C:\Windows\Help C:\Windows\Fonts C:\Windows\system32\viewers C:\Windows\system32\spool\drivers\color C:\ C:\Windows C:\ C:\Windows\system C:\Windows\system32\spool C:\Windows\system32\spool\drivers\w32x86 C:\Documents and Settings\username C:\ C:\Windows\system32\spool\Prtprocs\w32x86 C:\Documents and Settings\All Users\Start Menu C:\Documents and Settings\All Users\Start Menu\Programs C:\Documents and Settings\All Users\Start Menu\Programs\Startup C:\Documents and Settings\All Users\Desktop C:\Documents and Settings\All Users\Favorites C:\Documents and Settings\All Users\Application Data C:\Program Files C:\Windows\system32 C:\Program Files C:\Program Files\Common C:\Program Files\Common

29 30 31 32

%16429% %16430% %16437% %16438%

C:\Documents and Settings\All Users\Templates C:\Documents and Settings\All Users\Documents C:\Documents and Settings\All Users\Documents\My Music C:\Documents and Settings\All 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] ATTRIB CHKDSK DIR BATCH CLS DISABLE EXPAND FIXBOOT LISTSVC LOGON MORE NET RMDIR SYSTEMROOT - 30 © 2011, BCDALAI's Free Tech. Support Blog �

Windows Command Guide 2011

BOOTCFG CD CHDIR

COPY DEL DELETE

DISKPART ENABLE EXIT

FIXMBR FORMAT HELP

MAP MD MKDIR

RD REN RENAME

TYPE

COMMAND USAGES: [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: 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. 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. 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 WINDOWS XP / SERVER 2003 Control Panel Applets/ GUID / COMMAND CODE Features Folder Options shell:::{6dfd7c5c-2451-11d3-a299-00c04f8ef6af} My Computer shell:::{20d04fe0-3aea-1069-a2d8-08002b30309d} My Documents shell:::{450d8fba-ad25-11d0-98a8-0800361b1103} My Network Places shell:::{208d2c60-3aea-1069-a2d7-08002b30309d} Network Connections shell:::{7007acc7-3202-11d1-aad2-00805fc1270e} Printers and Faxes shell:::{2227a280-3aea-1069-a2de-08002b30309d} Recycle Bin shell:::{645ff040-5081-101b-9f08-00aa002f954e} Scheduled Tasks shell:::{d6277990-4c6a-11cf-8d87-00aa0060f5bf} Web Browser (Default) shell:::{871c5380-42a0-1069-a2ea-08002b30309d} WINDOWS VISTA / WINDOWS 7 or higher Action Center shell:::{bb64f8a7-bee7-4e1a-ab8d-7d8273f7fdb6} Add Hardware shell:::{7a979262-40ce-46ff-aeee-7884ac3b6136} Administrative Tools shell:::{d20ea4e1-3957-11d2-a40b-0c5020524153} AutoPlay shell:::{9c60de1e-e5fc-40f4-a487-460851a8d915} Backup and Restore shell:::{b98a2bea-7d42-4558-8bd1-832f41bac6fd} Biometrics Devices shell:::{0142e4d0-fb7a-11dc-ba4a-000ffe7ab428} BitLocker Drive Encryption shell:::{d9ef8727-cac2-4e60-809e-86f80a666c91} Color Management shell:::{b2c761c6-29bc-4f19-9251-e6195265baf1} Computer shell:::{20d04fe0-3aea-1069-a2d8-08002b30309d} Control Panel: Category view shell:::{26ee0668-a00a-44d7-9371-beb064c98683} Control Panel: Complete list Control Panel: Icon view Credential Manager Date and Time Default Location Default Programs Desktop Gadgets Device Manager Devices and Printers Display Documents Ease of Access Center Folder Options Fonts Game Controllers Get Programs (online) Getting Started HomeGroup Indexing Options Infrared Internet Options iSCSI Initiator Keyboard Location and Other Sensors Manage Wireless Networks Mouse Network and Sharing Center Network Connections Network Places Notification Area Icons Offline Files Parental Controls Pen and Touch People Near Me Performance Information and Tools shell:::{ed7ba470-8e54-465e-825c-99712043e01c} shell:::{21ec2020-3aea-1069-a2dd-08002b30309d} shell:::{1206f5f1-0569-412c-8fec-3204630dfb70} shell:::{e2e7934b-dce5-43c4-9576-7fe4f75e7480} shell:::{00c6d95f-329c-409a-81d7-c46c66ea7f33} shell:::{17cd9488-1228-4b2f-88ce-4298e93e0966} shell:::{37efd44d-ef8d-41b1-940d-96973a50e9e0} shell:::{74246bfc-4c96-11d0-abef-0020af6b0b7a} shell:::{a8a91a66-3a7d-4424-8d24-04e180695c7a} shell:::{c555438b-3c23-4769-a71f-b6d3d9b6053a} shell:::{450d8fba-ad25-11d0-98a8-0800361b1103} shell:::{d555645e-d4f8-4c29-a827-d93c859c4f2a} shell:::{6dfd7c5c-2451-11d3-a299-00c04f8ef6af} shell:::{93412589-74d4-4e4e-ad0e-e0cb621440fd} shell:::{259ef4b1-e6c9-4176-b574-481532c9bce8} shell:::{15eae92e-f17a-4431-9f28-805e482dafd4} shell:::{cb1b7f8c-c50a-4176-b604-9e24dee8d4d1} shell:::{67ca7650-96e6-4fdd-bb43-a8e774f73a57} shell:::{87d66a43-7b11-4a28-9811-c86ee395acf7} shell:::{a0275511-0e86-4eca-97c2-ecd8f1221d08} shell:::{a3dd4f92-658a-410f-84fd-6fbbbef2fffe} shell:::{a304259d-52b8-4526-8b1a-a1d6cecc8243} shell:::{725be8f7-668e-4c7b-8f90-46bdb0936430} shell:::{e9950154-c418-419e-a90a-20c5287ae24b} shell:::{1fa9085f-25a2-489b-85d4-86326eedcd87} shell:::{6c8eec18-8d75-41b2-a177-8831d59d2d50} shell:::{8e908fc9-becc-40f6-915b-f4ca0e70d03d} shell:::{7007acc7-3202-11d1-aad2-00805fc1270e} shell:::{208d2c60-3aea-1069-a2d7-08002b30309d} shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9} shell:::{d24f75aa-4f2b-4d07-a3c4-469b3d9030c4} shell:::{96ae8d84-a250-4520-95a5-a47a7e3c548b} shell:::{f82df8f7-8b9f-442e-a48c-818ea735ff9b} shell:::{5224f545-a443-4859-ba23-7b5a95bdc8ef} shell:::{78f3955e-3b90-4184-bd14-5397c15f1efc}

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

Windows Command Guide 2011

55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84

Personalization Phone and Modem Power Options Printers Problem Reports and Solutions Programs and Features Recovery Recycle Bin Region and Language RemoteApp and Desktop Connections Scanners and Cameras Sound Speech Recognition Sync Center System Tablet PC Settings Taskbar and Start Menu Text to Speech Troubleshooting User Accounts Web Browser (Default) Windows Anytime Upgrade Windows CardSpace Windows Defender Windows Firewall Windows Marketplace Windows Mobility Center Windows Security Center Windows SideShow Windows Update

shell:::{ed834ed6-4b5a-4bfe-8f11-a626dcb6a921} shell:::{40419485-c444-4567-851a-2dd7bfa1684d} shell:::{025a5937-a6be-4686-a844-36fe4bec8b6d} shell:::{2227a280-3aea-1069-a2de-08002b30309d} shell:::{fcfeecae-ee1b-4849-ae50-685dcf7717ec} shell:::{7b81be6a-ce2b-4676-a29e-eb907a5126c5} shell:::{9fe63afd-59cf-4419-9775-abcc3849f861} shell:::{645ff040-5081-101b-9f08-00aa002f954e} shell:::{62d8ed13-c9d0-4ce8-a914-47dd628fb1b0} shell:::{241d7c96-f8bf-4f85-b01f-e2b043341a4b} shell:::{00f2886f-cd64-4fc9-8ec5-30ef6cdbe8c3} shell:::{f2ddfc82-8f12-4cdd-b7dc-d4fe1425aa4d} shell:::{58e3c745-d971-4081-9034-86e34b30836a} shell:::{9c73f5e5-7ae7-4e32-a8e8-8d23b85255bf} shell:::{bb06c0e4-d293-4f75-8a90-cb05b6477eee} shell:::{80f3f1d5-feca-45f3-bc32-752c152e456e} shell:::{0df44eaa-ff21-4412-828e-260a8728e7f1} shell:::{d17d1d6d-cc3f-4815-8fe3-607e7d5d10b3} shell:::{c58c4893-3be0-4b45-abb5-a63e4b8c8651} shell:::{60632754-c523-4b62-b45c-4172da012619} shell:::{871c5380-42a0-1069-a2ea-08002b30309d} shell:::{be122a0e-4503-11da-8bde-f66bad1e3f3a} shell:::{78cb147a-98ea-4aa6-b0df-c8681f69341c} shell:::{d8559eb9-20c0-410e-beda-7ed416aecc2a} shell:::{4026492f-2f69-46b8-b9bf-5654fc07e423} shell:::{3e7efb4c-faf1-453d-89eb-56026875ef90} shell:::{5ea4f148-308c-46d7-98a9-49041b1dd468} shell:::{087da31b-0dd3-4537-8e23-64a18591f88b} shell:::{e95a4861-d57a-4be1-ad0f-35267e261739} 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: ControlPanel-Full.{ED7BA470-8E54-465E-825C-99712043E01C}

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

win.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): ::{20d04fe0-3aea-1069-a2d8-08002b30309d}\::{21ec2020-3aea-1069-a2dd-08002b30309d} 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 Or 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: spuninst-u 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

Appendix-A 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. 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. 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. 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”.

6.

7.

8.

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 box. 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 (x86)\windbg.exe 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: http://bit.ly/cI8Fwz 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 directory. Syntax: PUSHD [path | ..] Parameters 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. POPD 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. 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

Appendix-B CHANGED FEATURES AND NAMES

Table-16:

[Applies To: Vista, Server 2008, 2008 R2, Windows 7 and other Microsoft FEATURES / SERVICES / TOOLS NEWER FORMER WINDOWS VISTA (Client) WINDOWS 2000, XP, SERVER 2003 NTBackup (Windows Backup Utility) Backup and Restore Center Computer My Computer Credential Manager Stored User Names and Passwords Documents My Documents Ease of Access Center Accessibility Options Getting Started or Welcome Center Windows XPTour Music My Music Network Discovery Protocol (NDP) Computer Browser Network Places My Network Places Pictures My Pictures Programs and Features Add or Remove Programs Recent Documents My Recent Documents Recovery Recovery Console Region and Language Regional Settings Reliability and Performance Monitor Performance Monitor Run As / Run As Administrator Run As Security Configuration Management Local Security Settings Subsystem for Unix-based Applications Windows Services for Unix Superfetch Prefetch Sync Center Microsoft Synchronization Manager System Integrity Check and Repair System File Checker (SFC) System Protection System Restore Task Scheduler Scheduled Tasks Users Documents and Settings Videos My Videos Windows Complete PC Restore Automated System Recovery (ASR) Windows Contacts Address Book Windows Deployment Services (WDS) Remote Installation Services (RIS)

technologies. SL. 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

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

Windows Command Guide 2011

29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83

Windows Easy Transfer (WET) Files and Setting Transfer Wizard Windows Error Reporting (WER) Error Reporting Windows Live Messenger Windows Messenger Windows Mail Outlook Express Windows Meeting Space NetMeeting Windows Photo Gallery Windows Picture and Fax Viewer Windows Remote Assistance Remote Assistance Windows Resource Protection (WRP) Windows File Protection (WFP) WINDOWS 7 WINDOWS VISTA Action Center Problem Reports and Solutions Action Center Windows Security Center Backup and Restore Backup and Restore Center Deployment Image Servicing and pkgmgr.exe, peimg.exe, intlcfg.exe Management (DISM.exe) Desktop Gadgets Windows Sidebar Devices And Printers Printers Get Programs (Online) Windows Marketplace Getting Started Welcome Center Kernel Patch Protection (KPP) PatchGuard Networks Network Places Pen and Touch Pen and Input Devices Region and Language Regional and Language Options System Image Backup Complete PC Backup System Image Restore Complete PC Restore Windows Photo Viewer Windows Photo Gallery WINDOWS SERVER 2008 WINDOWS SERVER 2003 Problem Reports and Solutions Error Reporting Server Manager Computer Management Windows Firewall with Advanced Security Windows Firewall NTBackup (Windows Backup Utility) Windows Server Backup WINDOWS SERVER 2008 R2 WINDOWS SERVER 2008 Remote Desktop Services Terminal Services Terminal Services Gateway RD (Remote Desktop) Gateway OTHER TECHNOLOGY / FEATURES Bing Live Search Custom Compatibility Fixes Shim Live Framework MeshFX Live Mesh Windows Live Sync Live Migration Quick Migration Live Search Windows Live Search Microsoft Deployment Toolkit (MDT) Business Desktop Deployment Toolkit (BDD) Microsoft Dynamics products Microsoft Business Solutions Microsoft Outlook Microsoft Office Outlook Microsoft SharePoint Workspace Microsoft Office Groove System Center Configuration Manager Systems Management Server (SMS) System Center Data Protection Manager Data Protection Server (DPM) System Center Operations Manager Microsoft Operations Manager (MOM) (SCOM) Active Directory Users and Computers User Manager for Domains Windows Activation Technology (WAT) Windows Genuine Advantage (WGA) Windows DAC MDAC (Microsoft Data Access Components) Windows File Protection (on NT 5.x) System File Protection (WinME) Windows Installer Microsoft Installer Windows Internet Explorer (IE7 onwards) Microsoft Internet Explorer (up to IE6) Windows Live Butterfly MSN Butterfly Windows Live Family Safety Windows Live OneCare Family Safety Windows Live Mesh Live Mesh Windows Live Photo Gallery Windows Photo Gallery Windows Live Search MSN Search Windows Live SkyDrive Windows Live Folders Windows Live Sync Windows Live FolderShare

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

Windows Command Guide 2011

84 85 86

Windows Script Host Windows SteadyState Windows Virtual PC

Windows Scripting Host Microsoft Shared Computer Toolkit 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.

REFERENCES Books / Articles: MCTS: Windows 7 Configuring (Exam 70-680), MCTS: Exam 70-649, MCTS: Windows Vista (Exam 70620 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 640802), 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: http://answers.microsoft.com/, http://blogs.technet.com/markrussinovich/, http://en.wikipedia.org/, http://techrepublic.com.com/, http://technet.microsoft.com/, http://msdn.microsoft.com/, http://www.softpedia.com/ , http://www.sevenforums.com/, http://sourceforge.net/, http://windows7forums.com/, http://www.answerbag.com/, http://forums.chip.in/, http://www.cnet.com/, http://www.fixya.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/. Twitter: @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: http://bit.ly/evb1A3 Known/Unknown Facts on Windows: http://bit.ly/gh8pYX Integrate “Service Packs” into Windows and Office Installations: http://bit.ly/eTR9X0 Vista Folder-File Info: http://bit.ly/1qZvcq Enable or Disable Windows Update Auto Restart: http://bit.ly/flMBGH Windows Common FAQs-001: http://bit.ly/fP84rx The computer screen dims after resume from Hibernation: http://bit.ly/aphG9n Creating custom RUN commands for your favorite apps: http://t.co/ww6nfrw

THE END

Microsoft Management Console - Launch Admin Tools from the Command Line

AD Domains and Trusts

domain.msc

Active Directory Management

admgmt.msc

AD Sites and Serrvices

dssite.msc

AD Users and COmputers

dsa.msc

ADSI Edit

adsiedit.msc

Authorization manager

azman.msc

Certification Authority Management

certsrv.msc

Certificate Templates

certtmpl.msc

Cluster Administrator

cluadmin.exe

Computer Management

compmgmt.msc

Component Services

comexp.msc

Configure Your Server

cys.exe

Device Manager

devmgmt.msc

DHCP Managment

dhcpmgmt.msc

Disk Defragmenter

dfrg.msc

Disk Manager

diskmgmt.msc

Distributed File System

dfsgui.msc

DNS Managment

dnsmgmt.msc

Event Viewer

eventvwr.msc

Indexing Service Management

ciadv.msc

IP Address Manage

ipaddrmgmt.msc

Licensing Manager

llsmgr.exe

Local Certificates Management

certmgr.msc

Local Group Policy Editor

gpedit.msc

Local Security Settings Manager

secpol.msc

Local Users and Groups Manager

lusrmgr.msc

Network Load balancing

nlbmgr.exe

Performance Montior

perfmon.msc

PKI Viewer

pkiview.msc

Public Key Managment

pkmgmt.msc

QoS Control Management

acssnap.msc

Remote Desktops

tsmmc.msc

Remote Storage Administration

rsadmin.msc

Removable Storage

ntmsmgr.msc

Removalbe Storage Operator Requests

ntmsoprq.msc

Routing and Remote Access Manager

rrasmgmt.msc

Resultant Set of Policy

rsop.msc

Schema management

schmmgmt.msc

Services Management

services.msc

Shared Folders

fsmgmt.msc

SID Security Migration

sidwalk.msc

Telephony Management

tapimgmt.msc

Terminal Server Configuration

tscc.msc

Terminal Server Licensing

licmgr.exe

Terminal Server Manager

tsadmin.exe

UDDI Services Managment

uddi.msc

Windows Mangement Instumentation

wmimgmt.msc

WINS Server manager

winsmgmt.msc