1. Lookup your Wi-Fi profile
Using “netsh wlan show profile SSID key=clear” you can see your Wi-Fi details where SSID is Wi-Fi name of the network. For, e.g., in our example, the SSID is TNT.
2. Change the Color of the Command Prompt Window
Launch the cmd Window and type for, e.g., “color 6“. Now, hit Enter and you will see the color of text has been changed to Yellow. You can check other colors as well by typing “help colors.”
3. Change the Title of the Command Prompt Window
When you launch Command Prompt, for example, you can see the title bar saying, C:WINDOWS\system32\cmd.exe. This is very helpful in case you are working on multiple command windows to distinguish them by name.
4. Watch an ASCII Version of Star Wars: A New Hope
This method uses Telnet, so you have to make sure that Telnet is enabled on your Windows. To enable Telnet, go to Control Panel > Programs > Programs and Features > Turn Windows features on or off and turn on the Telnet service.
Now go to Command Prompt and type “telnet towel.blinkenlights.nl” and hit Enter. The movie (ASCII text version of Star Wars: A New Hope) will start playing.
5. Create a Wi-Fi Hotspot
Launch the Command Prompt and type “netsh wlan set hostednetwork mode=allow ssid=HotspotName key=Password”.
Here “HotspotName” will be the Wi-Fi hotspot name that you want and “Password” is the password that you set. Finally, hit Enter to run the command.
Now, to broadcast the hotspot, type “netsh wlan start hostednetwork” and hit Enter. The other devices can connect to your network.
When you want to stop broadcasting your Wi-Fi hotspot, you will have to type “netsh wlan stop hostednetwork” and Enter.
6. Copy Command Output to Clipboard
Simply, launch the Command Prompt and type “Command | clip”, where the Command is your command that you want to run and save. Suppose if you want to run a command “getmac and save its result, type “getmac | clip” and the result will be stored as shown in the image.
7. Open CMD Window Inside a Directory
Navigating to a specific directory in Command Prompt using “cd” command may sometimes be tiresome. This cmd trick can open the Command Prompt right from inside a directory. This trick is useful when the directory you are looking for deeply buried inside the filesystem.
Open the required directory in Windows Explorer. Now, in the address bar type “cmd” and hit Enter.
Now, you can see that the Command Prompt is opened right inside the directory from where you opened it in Windows Explorer.
8. Save a command result in a file
All you need to do is type “command > destination/file name with .txt extension” and hit Enter. Here the “command” is the command whose result you want to save.
In this example, we have run “ipconfig > d: \Networkinfo.txt” where ipconfig is the command, d: is the destination, and Networkinfo is the file name with the extension .txt.
9. Check IP Address of Any Website
“nslookup” is a Command Prompt trick that helps you to check IP address of any website.
Simply launch the Command Prompt and type “nslookup website_name” and hit Enter where website_name is the name of the website which you want the IP address for.
For example, we have checked the IP address for infot3chpro.com by entering the command “nslookup infot3chpro.com”.
10. Run Multiple Commands
This simple cmd trick will allow run multiple commands one after another using “&&” between each command. Simply type “command && command” and hit Enter.
For example, in our example, we have run “getmac && ipconfig” that will execute the “getmac” and “ipconfig” commands one after another.
11. Lookup all the drivers list of your computer
“driverquery” Command Prompt trick can be used to open the full-fledged list of all the installed drivers on your PC. Launch the Command prompt, type “driverquery” and hit Enter. You will see a list of all the drivers that are currently installed on your computer with other details like Name, Type, and Date.
12. Scan System Files
Note: To perform this cmd trick, you have to run the console session as an administrator. To run the Console as an admin, type cmd in the search bar and press CTRL+SHIFT+ENTER. It will run the command prompt as an admin.
“sfc/scannow” is a quite useful cmd trick that scans the system files and repairs them right from Command Prompt. First, launch the Command Prompt and type “sfc/scannow” and hit Enter. Since the overall scan process takes some time, please be patient.
13. Check The Network Info
“ipconfig” is the most used and helpful cmd trick to get all the details about your Network. Type “ipconfig” in the Command Prompt and hit Enter. You will see all the required information of your network including Media State, IP address, Subnet Mask, etc.
14. Check Default Programs
For this, you have to type and Enter the command “assoc” in the Command Prompt. You will see the list of all the extensions and the programs associated with them.
15. How To Get Help in CMD
You can get all the details about a command that how it works along with some examples. To fetch help on any command simply type “/?” at the end of that command. For example, we obtained help on “getmac” command by typing “getmac/?”