Frequently Used Command Line in Windows

16 December 2022

Home » Blogs » Windows » Tips and Tricks » Frequently Used Command Line in Windows

The command-line interface (CLI) is used to interact with the computer and run programs. The CLI receives keyboard input for commands and the computer executes commands delivered at a command prompt.

Most programmers use the Command Line to browse their computers and run the programs they create. You can navigate your computer’s , run programs you create, and even edit existing files with just a few keystrokes. Your programming skills will develop thanks to the powerful functionality of the Command Line.

TOP TUTORIALS:  3 Quick Ways to See Laptop/PC System Properties
Command line interface

You can create and delete files, launch programs, and browse folders and files using the command-line interface, software on your computer.

The following are the most frequently used command lines in Windows.

Windows Command Line (A – E)

CommandInformation
%SYSTEMROOT%\System32\rcimlby.exe -LaunchRARemote Assistance (Windows XP)
&&Command Chaining
appwiz.cplPrograms and features (formerly known as Add or Remove Programs)
appwiz.cpl@,2Enable and Disable Windows Features (Add/Remove Windows Components panel)
ArpDisplay and modify the IP-to-Physical address translation table used by the Address Resolution Protocol (ARP)
atSchedule tasks either locally or remotely without using Scheduled Tasks
bootsect.exeUpdate the master boot code for hard disk partitions to switch between BOOTMGR and NTLDR
caclsChange Access Control List (ACL) permissions on a directory, its sub-contents, or files
CalcCalculator
CHKDSKCheck / Repair the surface of the disk for physical errors or bad sectors
CipherDisplay or change the encryption of [file] directories on NTFS partitions
cleanmgr.exeDisk Cleanup
clipRedirecting the output of the command-line tool to the Windows clipboard
ClsClear the command line screen
/kRun the command with the command extension enabled
colorSet the default console foreground and background colors in the console
command.comDefault Operating System Shell
compmgmt.mscComputer Management
Control KeyboardKeyboard Properties
control mouse(or main.cpl)Mouse Properties
control sysdm.cpl,@0,3The Advanced tab of the dialog
control userpasswords2Open the classic User Accounts dialog
control.exe /name Microsoft.NetworkAndSharingCenterNetwork and Sharing Center
DCDIAGCheck domain controller health
desk.cplOpen view properties
devmgmt.msc
diskmgmt.msc
diskpart from the command line
dsa.mscOpen Active Directory Users and Computers
dsqueryFind any object in the directory according to the criteria
DirectX Diagnostic Tools
eventvwrWindows Event Log (Event Viewer)
Explorer.Open the explorer with the current folder selected.
explorer /e, .Open the explorer, with the folder tree, with the current folder selected.
  

Windows Command Line (F – O)

Command          Information
F7View command history
findSearch for text strings in a file or files
findstrFind a string in a file
.cplOpen Windows settings
fsmgmt.mscShared Folders
fsutilPerform tasks related to FAT and NTFS file systems
FtpTransfer files to and from a computer running the FTP server service
GetMacView the mac address of your network adapter
gpedit.mscGroup Policy Editor
gpresultDisplay Resultant Set of Policy (RSoP) information for target users and computers
httpcfg.exeHTTP Configuration Utility
IISRESETTo restart IIS
InetMgr.exeInternet Information Services (IIS) Manager 7
InetMgr6.exeInternet Information Services (IIS) Manager 6
intl.cplRegional and Language Options
ipconfigInternet protocol configuration
ipconfigList TCP/IP configurations for systems
lusrmgr.mscLocal Users and Group Administrators
mmsys.cplSound/Recording/Playback Properties
modeConfigure the system device
moreDisplay one output screen at a time
mrtMicrosoft Windows Malicious Software Removal Tool
msconfigSystem Configuration
MSTsc.exeRemote Desktop Connection
nbstatdisplays protocol statistics and current TCP/IP connections using NBT
nbtstatList of NetBIOS statistics and information
NCPA.cplNetwork Connection
Neta whole lot of commands to manage users and groups, shares, connections, etc.
net statisticsCheck the computer load time
net stopStop a running service.
net useConnect a computer to or disconnect a computer from a shared resource, display information about the computer’s connection, or mount a local share with different privileges (documentation)
netshView or change the network configuration of a running computer
netshNetwork configuration for a system
netstatNetwork Statistics
netstatList of TCP/IP statistics and information
NotepadNotepad? 😉
nslookup queries for information
odbcad32.exeODBC Data Source Administrator

Windows Command Line (P – Z)

Command          Information
pathpingTraceroute that collects detailed packet loss statistics
perfmonOpen Reliability and Performance Monitor
PingDetermine whether a remote computer is accessible over a network
Pingensuring the system is active on the network
powercfg.cplPower management applet
qfecheckShows the installed hotfixes that were applied to the server/workstation.
quserDisplay information about a user’s session on a terminal server
qwinstaView disconnected remote desktop sessions
RacialConnect to a VPN or dialup network
reg.exeConsole Registry Tool for Windows
Registry Editing
robocopyBackup/Recover/Copy large amounts of files reliably
rsop.mscGenerated Policy Set (shows the combined effect of all active group policies on the current system/login)
runasRun certain tools and programs with different permissions than those provided by the current logon user
ScManage whatever you want to do with the service.
ScManage Services
schtasksAllows administrators to create, delete, query, modify, run, and end scheduled tasks on a local or remote system.
secpol.mscLocal Security Settings
services.mscService
setView, set, or delete .exe environment variables.
DIRCMD setPreset dir parameters in .exe
setspncheck the SPN for Kerberos configuration
shutdown.exeShut Down or Reboot Local/Remote Machine
startStart a separate window to run a specific program or command
start.open the current directory in Windows Explorer.
subst.exeAssociate a with a drive letter, including local drives
systeminfoDisplays comprehensive information about the system
taskkillstop the task with a process id (PID) or image name
tasklist.exeList Processes on a local or remote computer
taskmgr.exe
telephon.cplPhone and Modem Properties
timedate.cplDate and Time
titleChange the title of the CMD window you have open
tracertTrack route
tracertTrack a jump between two hosts. It is useful to see if there is a pause between and where it is.
whoami /allView current user/group/privilege information
winver.exeFind Windows Version
wmicWindows Management Instrumentation Command Line
wscui.cplWindows Security Center
wuauclt.exeWindows Update Automatic Update Client

Related Articles

0 Comments

Submit a Comment