System Operations CMD
Here are some essential Command Prompt (CMD) commands for performing system operations in Windows:
### **1. **System Information**
- **`systeminfo`**: Displays detailed configuration information about the computer and its operating system.
- **Example:** `systeminfo`
- **`hostname`**: Shows the name of the computer.
- **Example:** `hostname`
- **`ver`**: Displays the Windows version.
- **Example:** `ver`
### **2. **System and Disk Management**
- **`chkdsk`**: Checks the file system and disk for errors.
- **Example:** `chkdsk C:`
- **`chkdsk /f`**: Checks and fixes errors on the disk.
- **Example:** `chkdsk C: /f`
- **`diskpart`**: Opens the Disk Partition tool for managing disk partitions.
- **Example:** `diskpart`
- **`sfc /scannow`**: Scans and repairs protected system files.
- **Example:** `sfc /scannow`
### **3. **System Services**
- **`net start [service]`**: Starts a specified service.
- **Example:** `net start wuauserv` (starts the Windows Update service)
- **`net stop [service]`**: Stops a specified service.
- **Example:** `net stop wuauserv` (stops the Windows Update service)
- **`sc query [service]`**: Displays the status of a specified service.
- **Example:** `sc query wuauserv`
### **4. **System Configuration**
- **`msconfig`**: Opens the System Configuration tool to manage startup options and services.
- **Example:** `msconfig`
- **`control`**: Opens the Control Panel.
- **Example:** `control`
### **5. **User and Account Management**
- **`net user`**: Displays a list of user accounts.
- **Example:** `net user`
- **`net user [username] [password] /add`**: Adds a new user account.
- **Example:** `net user newuser password /add`
- **`net user [username] /delete`**: Deletes a user account.
- **Example:** `net user olduser /delete`
### **6. **Shutdown and Restart**
- **`shutdown /s /f /t [seconds]`**: Shuts down the computer after a specified number of seconds.
- **Example:** `shutdown /s /f /t 60`
- **`shutdown /r /f /t [seconds]`**: Restarts the computer after a specified number of seconds.
- **Example:** `shutdown /r /f /t 60`
- **`shutdown /a`**: Cancels a shutdown or restart that is in progress.
- **Example:** `shutdown /a`
### **7. **Power Management**
- **`powercfg`**: Configures power settings and provides information about power status.
- **Example:** `powercfg /a` (lists available sleep states)
- **`powercfg /batteryreport`**: Generates a battery report (laptop/portable devices).
- **Example:** `powercfg /batteryreport`
These commands assist in managing and configuring system operations, troubleshooting, and performing maintenance tasks from the Command Prompt.