Most users don’t need to go into the deep weeds with command prompts (check out Microsoft's A-Z reference if you do), but there are a few tasks and tricks that are handy for everyone to know. What are your favorite commands? Tell us at answer@pcworld.com and we might add it to this article.
[Have a tech question? Send your query to answer@pcworld.com.]
To access the command prompt, right-click the start button in Windows 10 and select Command Prompt. Make sure you have admin rights on the device you’re using to avoid permission issues.
Note that PowerShell may soon replace Command Prompt as the chosen interface for DOS programming in Windows 10, but you can use these codes in either utility (and you should still be able to find Command Prompt with a little extra digging.)
1. Fix a flaky internet connection: ipconfig
Simply typing ipconfig will show you all the details of your internet connection. One of the most useful is your gateway address, which is the IP address of your router. Type that address into a browser window to access your router.
2. Check your connection: ping
Open the command prompt and type ping www.google.com. This command sends packets of information out, waits for a response, then shows you how long the trip took and whether any packets were lost along the way. If your internet is working fine it’ll reach the destination and respond back with no packet loss, and hopefully in a very short period of time (just a few seconds, typically).
3. Fix corrupted system files: sfc (System File Checker)
For example, a reader was recently able to resolve an issue where an icon had disappeared from his taskbar—specifically, the icon for ejecting external drives safely. He fixed it by typing the command sfc /scannow and waiting for it to do its thing, which can take five to ten minutes depending on your system.
4. Examine your system’s energy efficiency in detail: powercfg
Open the command prompt and type powercfg /energy. The operating system will then analyze your system’s power usage for 60 seconds and deliver a detailed report to your System32 folder (it will tell you the file's location).
You can also type powercfg /batteryreport for all the details on your system’s battery, including the battery level at certain intervals of time, along with the amount of time it took to drain recently, which is how we measure battery life in laptops at PCWorld.com. The powercfg command can do much more, but I use these two capabilities most often.
Post a Comment