Window - CMD

Create New Text File

C:\Users\USER-PC>copy con FILE NAME.txt

Cut and Paste file from Directory A to Directory B

C:\Users\USER-PC>move Directory_A Directory_B

Delete Text File

C:\Users\USER-PC>del FILE NAME.txt

DISM command-line utility to repair a Windows Image

Using DISM with the CheckHealth option


Verify whether any corruption has been detected. This command can only be used to see if corruption exists, but it doesn't perform any repairs.

C:\Users\USER-PC>DISM /Online /Cleanup-Image /CheckHealth


Using DISM with the ScanHealth option


Scan the Windows image for any corruption. Unlike the /CheckHealth, the /ScanHealth switch can take up to 10 minutes to complete the process.

C:\Users\USER-PC>DISM /Online /Cleanup-Image /ScanHealth


Using DISM with the RestoreHealth option


Scan the Windows image for any corruption and to perform a repair automatically. Unlike the /ScanHealth switch, the /RestoreHealth switch can take up to 20 minutes to complete the process.

C:\Users\USER-PC>DISM /Online /Cleanup-Image /RestoreHealth

Display detailed configuration information about PC and OS

C:\Users\USER-PC>systeminfo

Display help information on that command

C:\Users\USER-PC>help

Display Information about All Sessions with Local Computer

C:\Users\USER-PC>net session

Display List of Installed Device Drivers and Properties

C:\Users\USER-PC>driverquery

Display the route path between your computer to website

C:\Users\USER-PC>tracert WebsiteURL

Display version of Operating System

C:\Users\USER-PC>ver

Enable / Disable Ethernet Connection

Enable

netsh interface set interface "ethernet" Enable


Disable

netsh interface set interface "ethernet" Disable

Export and import wireless network profiles

Export

exports all your wireless network profiles

C:\Users\USER-PC>netsh wlan export profile key=clear folder="FOLDER PATH"


exports one specific wireless network profile to a specified location

C:\Users\USER-PC>netsh wlan export profile name="PROFILE NAME" key=clear folder="FOLDER PATH"



Import

import each wireless profile settings to all interfaces

C:\Users\USER-PC>netsh wlan add profile filename="FILE_PATH.XML"


import profiles to a particular wireless interface and only to the current user

C:\Users\USER-PC>netsh wlan add profile filename="FILE_PATH.XML" Interface="Wireless Network Connection" user=current