Home Windows 10 Command Prompt Commands, Tips and Tricks for Windows 10

Command Prompt Commands, Tips and Tricks for Windows 10

by Mohsin Raza
Command Prompt

In spite of the fact that Windows’ settings give simple access to arranging most things, the Command Prompt – raised or something else – can be crucial in various situations, particularly when you know how to exploit it.

In some cases, settings can be applied by composing a couple of characters as opposed to navigating a progression of menus, while different occasions there basically isn’t some other method to play out an activity aside from with command lines.

We’ve gathered a rundown of things that you can do in the Windows Command Prompt, including a few commands everybody should know for general utilization, further developed ones for tweaking or investigating your PC, just as lesser-known and less down to earth Command Prompt highlights. Our rundown of tips and deceives underneath has been sorted out from briefest and generally useful, to progressively mind-boggling and hazardous…

Stop any command mid-activity

Since you may be trying a few commands… squeezing Ctrl + C will drop a command that you’ve just entered and enable you to start composing another while composing cls will clear the present window of any commands that you’ve entered.

Did you know there is a settings menu?

Right-click the title bar and open Properties for settings that incorporate the capacity to change your Command Prompt’s textual style, design, and hues, just as choices, for example, Quick Edit mode, which will consequently glue content from your clipboard when you right snap in the window.

Command Prompt keyboard shortcuts

Tapping the here and their bolts on your console will spin through commands that you’ve recently entered. More easy routes:

Tab: When you’re composing a folder way, the tab will auto-complete and burn through indexes

  • Ctrl + M: Enables Mark Mode which gives you a chance to move the cursor every which way with the bolt keys
  • Ctrl + C or V: As of Windows 10, you can copy and glue with control C and V like somewhere else around the OS
  • Ctrl + F: Likewise, control + F now gives you a chance to scan for content in the Command Prompt
  • Ctrl + Shift + Scroll on your mouse: Increases or diminishes the window straightforwardness (+ and – keys work as well)
  • Alt + Enter: Enables full-screen mode with no title bar showed on top (F11 additionally works like somewhere else in Windows)

Drag and drop folders to insert a directory path

Drag and drop folders

Catalog ways don’t need to be composed in any case. Besides having the option to copy/glue content and tab through indexes, you can move a folder straightforwardly into the Command Prompt window to consequently embed the area.

The function keys F1-F9 are also shortcuts

The capacity (F) keys on the highest point of your console are additionally easy routes that for the most part return past commands without retyping them.

  • F1: Tapping or holding this key will retype the command that you just entered letter by letter.
  • F2: Copies the present command up to a specified character.
  • F3: Completely retypes the past line that you entered.
  • F4: The turn around of F2 – auto-erases up to a specified character (your cursor must be before the content).
  • F5: Retypes the past command like F3 yet gives you a chance to burn back through numerous lines in your command history.
  • F6: Inserts Ctrl+Z (^Z) in the Command Prompt, which is a finish of-file sign (message after this is disregarded)
  • F7: Opens a rundown of recently entered commands that you can choose from.
  • F8: Works like F5 yet doesn’t stop toward the finish of your command history, cycles back to the start.
  • F9: Lets you retype a past command by entering a number related to the line.

Enter multiple commands at once

Including && between commands will give you a chance to enter numerous lines on the double to be executed in progression. Model:

  • tasklist && netstat – b

See every process running and connected

Entering tasklist command will list the entirety of the procedures running on your machine alongside subtleties, for example, their procedure identifier and memory use, while netstat – b will create a rundown of the considerable number of procedures with a set up organize connection.

tasklist

List every device driver on your PC

There are numerous approaches to produce a rundown of drivers in the Command Prompt, here’s one line that incorporates extra data, for example, the status of a device and the folder area/file name of the related driver:

  • driverquery/FO list/v

Output results to a text file or clipboard

You can spare the yield of a command, for example, tasklist or driverquery to another content file by including > alongside a registry and file name. Model:

  • driverquery > C:\Users\TechSpot\Desktop\output.txt

Delete temporary files from your drive

A portion of the brief files on your drive can be erased with the accompanying commands (/q runs the activity without an affirmation prompt,/f disregards the read-just property and powers erasure,/s erases substance from all sub-folders):

Delete temporary files

  • Erase brief user files: del/q/f/s %temp%\*
  • Erase brief framework files (requires administrator rights): del/s/q C:\Windows\temp\*
  • …Or then again run them together: del/q/f/s %temp%\* && del/s/q C:\Windows\temp\*

If that didn’t void enough stockpiling, here are more temp folder areas, and we as of late secured a lot of approaches to free up space on Windows, including Command Prompt methods to dispatch an advanced Disk Cleanup apparatus and another to cripple hibernation by erasing the component’s framework file (hiberfil.sys).

Open Windows’ on-screen keyboard

Entering osk into a Command Prompt opens Windows’ on-screen console which gives you a chance to click keys with your mouse as opposed to composing them.

On-Screen Keyboard

Shutdown your PC at a certain time

The “shutdown” command can be used with a scope of changes to shutdown, reboot and that’s just the beginning, including the capacity to drive applications shut, to show a message on shutdown, and to specify the number of seconds you’d like before the activity happens. Model: shutdown – s – t 3600 would shut down your PC in 60 minutes.

Make a Wi-Fi hotspot and Find your Wi-Fi secret key

If your system connector underpins the component, you can arrange your PC to be a remote hotspot from the Command Prompt.

Step by step instructions to check if your equipment is able: Enter netsh wlan show drivers and search for the line that peruses “Hosted network support: Yes.”

  • From there, you can empower the hotspot with this command: netsh wlan set hostednetwork mode=allow ssid=YOURSSID key=YOURPASSWORD

Additionally, enter this line to empower the hotspot: netsh wlan start hostednetwork (stop works as well) and you can check the status of your new hotspot by entering netsh wlan show hostednetwork.

You may likewise need to explore through some GUI menus to empower connection sharing (we couldn’t figure out how to do this from the Command Prompt): Go to Network and Sharing > Change connector settings (Control Panel\Network and Internet\Network Connections) and you should see the system connectors connected to your PC.

Right snap the device that is connected to the Internet (not your new hotspot if that is recorded) and open Properties. In the Sharing tab, check the case to “Allow other network users to connect through this computer’s Internet connection

Among other netsh commands, the element can show your Wi-Fi secret key by entering netsh WLAN show profile name=YOURPROFILE key=clear (look under Security settings > Key Content).

This line can erase a system profile you’re never again using: netsh WLAN erase profile name=YOURPROFILE

Quick fix commands for connection issues

Issue with your connection? ipconfig has some go-to commands to determine the issue:

  • ipconfig/discharge (Releases your right now gave nearby IP address)
  • ipconfig/restore (Requests another neighborhood IP address)
  • ipconfig/flushdns (Resets the substance of the DNS customer resolver reserve)

For industrious issues with your connection, there are some progressively detailed commands that merit attempting. Note that you may need to reconfigure your system connector and so forth if you have manual settings, especially while resetting TCP/IP and the Windows Firewall.

IPConfig

These commands require a reboot.

  • netsh winsock reset (Resets the winsock index to its default state, expelling layered specialist organizations – netsh winsock show inventory records these things)
  • netsh int ip reset all (Removes and reinstalls TCP/IP, revamping two or three related vault keys)
  • netsh advfirewall reset (Restores the Windows Firewall to default settings, erasing recently designed guidelines and so forth.)
  • nbtstat – r (Purges the substance of the NetBIOS name store and afterward reloads the #PRE-labeled sections from the Lmhosts file)
  • nbtstat – rr (Releases and afterward revives NetBIOS names for the nearby PC that is enrolled with WINS servers)

Quick fix commands for boot issues

Is it accurate to say that you are welcomed with a message that peruses “reboot and choose legitimate boot device?” or “NTLDR is missing” when you turn on your PC? The method beneath has worked for us to fix a Windows 8 machine and ought to be substantial for different versions of Windows.

Note that these lines must be entered in a Command Prompt that is opened in a recovery domain from outside of your working framework, for example, from a bootable USB drive with Windows 10 installation media.

  • bootrec/fixmbr
  • bootrec/fixboot
  • bootrec/scanos
  • bootrec/rebuildbcd

In spite of the fact that that succession has worked for us previously, we tried this on a virtual machine by erasing the framework held parcel (where boot data is put away) and attempting to reestablish the bootable state by entering those lines. Tragically, get to was denied for bootrec/fixboot and we couldn’t discover a workaround, so Windows still couldn’t stack.

Resetting

Be that as it may, these bcdboot and bootsect commands attempted to get Windows booting once more, despite the fact that we just reformatted the framework segment:

bcdboot C:\Windows (Recreates the framework parcel files with those replicated from C:\Windows. While this configuration works from inside Windows, see the note beneath about running this command from a recovery reassure outside of Windows).

Quick fix commands for repairing Windows

Still can’t boot into Windows? Encountering bluescreens or some other bug? Windows has worked in instruments to examine for and supplant degenerate framework files:

  • sfc/scannow (from inside Windows)
  • sfc/scannow/offbootdir=D:\/offwindir=D:\Windows (from outside Windows, for example, from a recovery drive)

A different DISM command can filter the Windows part store for degenerate files and naturally fix them:

  • DISM/Online/Cleanup-Image/RestoreHealth (from inside Windows)
  • DISM/Image:D:\/Cleanup-Image/RestoreHealth (from outside Windows)

Encrypt, compressor backup files

Files and folders can be encoded or compacted and afterward decoded and decompressed with fast individual commands for every activity – ensure you change the objective goal:

Encode a file or folder: figure/e C:\Users\TechSpot\Desktop\Folder (here are more figure commands -/h applies a concealed property)

  • Decode that file or folder: figure/d C:\Users\TechSpot\Desktop\Folder
  • Pack a file or folder: conservative/c/s:C:\Users\TechSpot\Desktop\Folder
  • Decompress a file or folder: conservative/u/s:C:\Users\TechSpot\Desktop\Folder

You can make semi-steady file reinforcements using robocopy, however, this is more required than the past commands.

There’s an extraordinary Super User string talking about the subject where variations of a similar command are suggested for having robocopy do fundamental file reinforcements, copying files from one area to another – yet just when changes have been made.

Here’s the most proposed command (see the link for clarification on the choices):

  • robocopy C:\source M:\destination/MIR/FFT/R:3/W:10/Z/NP/NDL

Generate reports about your system

These reports are shockingly definite and may help in understanding issues including your framework’s capacity utilization or remote connectivity.

  • powercfg/vitality (Generates a report about the vitality effectiveness of your framework – the area of the report is referenced after the command wraps up)
  • powercfg/batteryreport (Generates a report with specifications for your battery just as details and charts about the historical backdrop of your battery utilization)
  • netsh wlan show wlanreport (Generates a report with specs for your remote equipment alongside data about your connection history)

You may also like

Leave a Comment