Microsoft commands are essential text-based instructions used in Windows operating systems to execute various tasks. These commands help users manage files, configure networks, troubleshoot errors, and automate system processes. They are commonly used in the Command Prompt (CMD) or PowerShell to perform actions quickly and efficiently. Below is a detailed list of important Windows commands and their functions.
Basic Windows commands
RD | The RD (or RMDIR ) command in Windows is used to delete or remove directories. It works only on empty folders unless the /S switch is used to remove all contents inside. |
Del | The DEL command in Windows is used to delete files from a specified directory. It permanently removes files but does not delete folders unless combined with the /S switch for recursive deletion. |
DIR | DIR: The DIR command in Windows displays a list of files and directories in a specified folder, showing details like size and date. |
CD | The CD command in Windows is used to change the current directory in the command prompt to navigate between folders easily.– Changes the current directory. |
MD | The MD (or MKDIR ) command in Windows is used to create new directories or folders in the specified location via Command Prompt. |
RD | The RD (or RMDIR ) command in Windows is used to delete or remove directories. It works only on empty folders unless the /S switch is used to remove all contents inside. |
CLS | The CLS Windows Commands is used to clear the Command Prompt screen, removing all previously displayed text and providing a clean workspace without closing the terminal window. |
Copy | The COPY command in Windows is used to copy one or multiple files from one location to another, preserving the original files while creating duplicates in the specified destination folder. |
XCOPY | The XCOPY command in Windows is used to copy files and directories, including subdirectories. It provides advanced options for bulk copying, making it more powerful than the basic COPY command. |
MOVE | The MOVE command in Windows is used to move files or directories from one location to another, effectively relocating them without creating duplicates, unlike the COPY command. |
REN | The REN (or RENAME ) command in Windows is used to change the name of a file or folder. It does not move files, only updates their names within the same directory. |
windows commands to open program
hdwwiz.cpl | The hdwwiz.cpl command in Windows opens the “Add Hardware Wizard,” allowing users to install and manage hardware devices easily. |
appwiz.cpl | The appwiz.cpl command in Windows opens the “Programs and Features” window, allowing users to uninstall or modify installed programs easily. |
calc | The calc command in Windows opens the Calculator application, allowing users to perform basic and advanced mathematical calculations easily. |
compmgmt.msc | The compmgmt.msc command in Windows opens the Computer Management tool, allowing users to manage disks, users, services, and system performance settings |
control | The control command in Windows opens the Control Panel, allowing users to manage system settings, hardware, software, user accounts, and network options. |
timedate.cpl | The timedate.cpl command in Windows opens the Date and Time settings, allowing users to adjust time, date, and time zone preferences. |
devmgmt.msc | The devmgmt.msc command in Windows opens Device Manager, allowing users to manage hardware devices, update drivers, and troubleshoot device-related issues easily. |
dxdiag | The dxdiag command in Windows opens the DirectX Diagnostic Tool, displaying system information, graphics, sound, and troubleshooting details for DirectX components. |
cleanmgr | The cleanmgr command in Windows is a built-in tool used to delete temporary files and free up disk space easily. |
diskmgmt.msc | The diskmgmt.msc command in Windows opens Disk Management, allowing users to manage partitions, format drives, and assign drive letters easily. |
diskpart | The diskpart command in Windows is a command-line tool used to manage disks, partitions, and volumes, including formatting and resizing. |
control desktop | The control desktop command in Windows opens the Display Settings, allowing users to customize screen resolution, wallpapers, and other display preferences easily. |
desk.cpl | The desk.cpl command in Windows opens the Display Settings, allowing users to adjust screen resolution, themes, and other display preferences easily. |
eventvwr.msc | The eventvwr.msc command in Windows opens Event Viewer, allowing users to view system logs, monitor events, and troubleshoot issues easily. |
sigverif | The sigverif command in Windows opens the File Signature Verification tool, helping users check for unsigned drivers and system files easily. |
firefox | The firefox command in Windows opens the Mozilla Firefox browser, allowing users to browse the internet, access websites, and manage web settings easily. |
control folders | The control folders command in Windows opens the File Explorer Options, allowing users to customize folder views, privacy settings, and file navigation preferences easily. |
control fonts | The control fonts command in Windows opens the Fonts folder, allowing users to view, install, manage, and delete system fonts easily. |
gpedit.msc | The gpedit.msc command in Windows opens the Local Group Policy Editor, allowing users to configure system settings, policies, and administrative templates easily. |
inetcpl.cpl | The inetcpl.cpl command in Windows opens Internet Properties, allowing users to manage browser settings, security options, privacy preferences, and network configurations easily. |
lusrmgr.msc | The lusrmgr.msc command in Windows opens Local Users and Groups Manager, allowing users to manage user accounts, groups, and permissions easily. |
logoff | The logoff command in Windows logs out the current user, closing all open applications and ending the session without shutting down. |
mrt | The mrt command in Windows opens the Microsoft Malicious Software Removal Tool, helping users scan and remove specific malware from their system easily. |
mspaint | The mspaint command in Windows opens Microsoft Paint, allowing users to create, edit, and save images using basic drawing and painting tools. |
main.cpl | The main.cpl command in Windows opens the Mouse Properties window, allowing users to adjust mouse settings, pointers, speed, and button configurations easily. |
System Information windows Commands
VER | The VER command in Windows displays the operating system version, providing basic details about the installed Windows version in Command Prompt. |
SYSTEMINFO | The SYSTEMINFO command in Windows displays detailed system information, including OS version, hardware details, installed updates, and network configuration. |
HOSTNAME | The HOSTNAME command in Windows displays the computer’s name, which identifies it on a network or within the system settings. |
IPCONFIG | The IPCONFIG command in Windows displays network configuration details, including IP address, subnet mask, and default gateway, helping troubleshoot connectivity issues. |
GETMAC | The GETMAC command in Windows displays the MAC (Media Access Control) addresses of network adapters, helping identify hardware addresses for networking purposes. |
NETSTAT | The NETSTAT command in Windows displays active network connections, listening ports, and network statistics, helping monitor and troubleshoot network activity. |
TASKLIST | The TASKLIST command in Windows displays a list of running processes, showing their process IDs (PIDs) and memory usage for system monitoring. |
TASKKILL | The TASKKILL command in Windows is used to terminate running processes by specifying their name or process ID (PID) in Command Prompt. taskkill /PID [pid_number] |
WMIC | The WMIC command in Windows retrieves system information, manages processes, and performs administrative tasks using Windows Management Instrumentation (WMI) in Command Prompt. |
CHKDSK | The CHKDSK command in Windows scans and repairs disk errors, checks file system integrity, and fixes bad sectors on storage drives. |
command to open application in windows
ncpa.cpl | The control netconnections command in Windows opens the Network Connections window, allowing users to manage Wi-Fi, Ethernet, and other network settings easily. |
notepad | The notepad command in Windows opens Notepad, a simple text editor used for creating, editing, and viewing plain text files easily |
osk | The osk command in Windows opens the On-Screen Keyboard, allowing users to input text using a virtual keyboard on the screen. |
powercfg.cpl | The powercfg.cpl command in Windows opens the Power Options window, allowing users to manage power plans, battery settings, and sleep modes easily |
regedit | The regedit command in Windows opens the Registry Editor, allowing users to view, edit, and manage system registry settings for customization and troubleshooting. |
services.msc | The services.msc command in Windows opens the Services Manager, allowing users to start, stop, and configure system services for performance and troubleshooting. |
sysdm.cpl | The sysdm.cpl command in Windows opens the System Properties window, allowing users to manage performance, remote access, hardware, and advanced system settings easily. |
msconfig | The msconfig command in Windows opens the System Configuration tool, allowing users to manage startup programs, boot options, services, and system troubleshooting settings easily. |
msinfo32 | The msinfo32 command in Windows opens the System Information tool, displaying detailed hardware, software, and system configuration details for troubleshooting and diagnostics. |
taskmgr | The taskmgr command in Windows opens Task Manager, allowing users to monitor processes, manage startup programs, check performance, and end tasks easily. |
explorer | The explorer command in Windows opens File Explorer, allowing users to browse files, folders, and drives, and manage system navigation easily. |
cls | The cls command in Windows clears the Command Prompt screen, removing all previous commands and output, providing a clean working space. |
File Management Commands
ATTRIB | The ATTRIB command in Windows changes file attributes, such as read-only, hidden, system, or archive, to manage file visibility and protection. |
TREE | he TREE command in Windows displays a graphical directory structure of a drive or folder, showing all subdirectories in a hierarchical format. |
FC | The FC command in Windows compares two files line by line, highlighting differences to help identify changes between text or binary files. |
FIND | The FIND command in Windows searches for specific text within files or command output, helping locate information quickly in large datasets. |
ASSOC | The ASSOC command in Windows displays or changes file associations, showing which programs open specific file extensions like .txt or .jpg . |
TYPE | The TYPE command in Windows displays the contents of a text file in the Command Prompt without opening it in an editor. |
DISKPART | The DISKPART command in Windows manages disk partitions, allowing users to create, delete, format, and modify partitions on storage drives. |
FORMAT | The FORMAT command in Windows erases all data on a drive and prepares it for use by creating a new file system |
LABEL | The LABEL command in Windows creates, changes, or deletes the volume label (name) of a disk drive for identification purposes. |
VOL | The VOL command in Windows displays the volume label and serial number of a specified disk drive, providing basic disk information. |
User Management Commands
NET USER | The NET USER command in Windows manages user accounts, allowing administrators to add, delete, or modify user account settings via Command Prompt. |
WHOAMI | The WHOAMI command in Windows displays the current logged-in user’s name and domain, helping identify user credentials in Command Prompt. |
LOGOFF | The LOGOFF command in Windows signs out the current user or a specified user from the system, closing all active sessions. |
SHUTDOWN | The SHUTDOWN command in Windows shuts down, restarts, or logs off the computer, with options for timed shutdowns and forced closures. |
POWERCFG | The POWERCFG command in Windows manages power settings, analyzes energy consumption, and configures sleep, hibernation, and battery performance options. |
WMIC USERACCOUNT | The WMIC USERACCOUNT command in Windows retrieves detailed user account information, including status, privileges, and security settings, via Windows Management Instrumentation (WMI). |
wmic useraccount get name | The WMIC USERACCOUNT GET NAME command in Windows lists all user account names on the system using Windows Management Instrumentation (WMI). |
NET LOCALGROUP | The NET LOCALGROUP command in Windows manages local group memberships, allowing users to add, remove, or list users in a specified group. |
GPUPDATE | The GPUPDATE command in Windows refreshes Group Policy settings, applying recent changes without requiring a system restart for enforcement. |
GPRESULT | The GPRESULT command in Windows displays applied Group Policy settings for a user or computer, helping troubleshoot policy configurations and permissions. |
Miscellaneous Commands
MSCONFIG | The MSCONFIG command in Windows opens the System Configuration tool, allowing users to manage startup programs, boot options, and system services. |
eventvwr | The EVENTVWR command in Windows opens the Event Viewer, allowing users to view system logs, errors, and security events for troubleshooting. |
regedit | The REGEDIT command in Windows opens the Registry Editor, allowing users to view, edit, and manage system registry settings for customization and troubleshooting. |
NET ACCOUNTS | The NET ACCOUNTS command in Windows manages account policies, including password requirements and login restrictions, to enhance security and user management. |
START | The START command in Windows opens files, programs, or commands in a new window, enabling multitasking and improved workflow management. |
TIME | The TIME command in Windows displays or sets the system time, allowing users to view or change the current time setting. |
msinfo32 | The msinfo32 command in Windows opens the System Information tool, displaying detailed hardware, software, and system configuration details. |
color | The COLOR command in Windows changes Command Prompt text and background colors using hexadecimal codes for better visibility and customization. know color code type COLOR help |
comp | The COMP command in Windows compares two files byte by byte, highlighting differences to check for data inconsistencies or corruption. |
MSTSC | The MSTSC command in Windows launches Remote Desktop Connection, allowing users to connect to and control another computer remotely. |
systeminfo | The SYSTEMINFO command in Windows displays detailed system information, including OS version, hardware specifications, and network settings. |
driverquery | The DRIVERQUERY command in Windows displays a list of installed drivers, including module names, types, and load statuses for troubleshooting and managemen |
fsutil fsinfo drives | The FSUTIL FSINFO DRIVES command in Windows lists all available drives on the system, including hard disks, USB drives, and network drives. |
taskmgr | The TASKMGR command in Windows opens Task Manager, allowing users to monitor processes, manage applications, check performance, and end unresponsive tasks. |
services.msc | The SERVICES.MSC command in Windows opens the Services Manager, allowing users to start, stop, and manage system services for performance and troubleshooting |
resmon | The RESMON command in Windows opens Resource Monitor, allowing users to track CPU, memory, disk, and network usage for system performance analysis. |
cleanmgr | The CLEANMGR command in Windows opens Disk Cleanup, allowing users to remove unnecessary files and free up disk space efficiently. |
Conclusion
Microsoft commands are vital to efficiently managing Windows systems. Whether for troubleshooting, system configuration or automation, mastering these commands enhances productivity and problem-solving capabilities. Learning these commands can help both beginners and advanced users perform tasks effectively without relying solely on the graphical interface.
Recommended Articles
- Windows Commands Every User Should Know
- 15 Essential Things to Do After Installing Windows 10
- How To Change IP Address Windows 10 Using Different Methods
- How to Install and Configure Windows Server 2022
- What Is Cache Memory? Types, Functions & Limitations
- CMD vs. PowerShell: Understanding the Key Differences
- What is Microsoft Windows? Features, Functions, And Benefits
- What Is Spyware? Definition, Types And How to Protect System
- What Is Virtual Memory? How It Works And Why It’s Important
- Top 20 Highest Salary Jobs : Lucrative Careers with Best Salaries - 5 April 2025
- Types of Operating System (OS): Features,Types And Uses - 5 April 2025
- 15 Features of Operating System You Should Know - 4 April 2025