Tuesday 16 February 2021

 A Guide to Command Prompt Commands in Windows 7,8,10. Today I will show you some commands that let you operate your operating system through commands. You can use these commands in the Command Prompt. So Let's Start.

A guide to command prompt


Here is a list of Command Prompt Commands:-

1. How to enable and disable firewall using the command prompt 

Steps How to do:- 

  • Open Run ( Press Win Logo key + R) then type cmd then click ok. (You must have administrator rights)
Use this command:- To Disable Firewall using command prompt 

  netsh firewall set opmode mode=DISABLE

disable windows firewall using cmd


Use this command:- To Enable Firewall using command prompt

   netsh firewall set opmode mode=ENABLE

enable firewall using cmd

2. How to copy files and folders using command prompt

Steps How to do:- 

  • Open Run ( Press Win Logo key + R) then type cmd then click ok. 
Use this command:- To copy files and folder using command prompt 

  robocopy /S /E Source Destination

/S:- it will copy all subdirectories 
/E:- it will copy empty directories and subdirectories
Source:- From where you want to copy Data (D:\Images)
Destination:- Where you want to copy your Data (E:\Newdata)


 For e.g.:-  robocopy /S /E D:\Images E:\Newdata

how to use robocopy command in cmd

How to use robocopy command in cmd

Also, Read This:- How to generate QR Code in chrome?

3. How to close applications using command prompt

Steps How to do:- 

  • Open Run ( Press Win Logo key + R) then type cmd then click ok. (You must have administrator rights)
Use this command:- To check tasks running on the computer
 
  tasklist

tasklist command



You can check the chrome running in the list. Lets close or kill the chrome using the command prompt

Use this command:- To close or Kill the chrome using the command prompt

 
 taskkill /F /IM chrome.exe

/F:- Force chrome to kill or close
/IM:- image name of the process


You can also kill or close a task using the process id 

  taskkill /PID 5128 /T

/T:- Terminate the specified task

taskkill command in cmd


4. How to check who is accessing your shared files

Steps How to do:-

  • Open Run ( Press Win Logo key + R) then type cmd then click ok. (You must have  administrator rights)


Use this command:- How to check who is accessing your shared files

   net session 

how to use net session command


5. How to hide drives using command prompt

Steps how to do:-

  • Open Run ( Press Win Logo key + R) then type cmd then click ok. (You must have  administrator rights)
  • After opening cmd then type Diskpart.
Caution:- Never try to Hide C drive and boot drive or drive where the operating system is installed. Never try to Hide drives with the following labels. 



drives diskpart





1. Open cmd then type Diskpart.

diskpart command



2. Now let's check how many drives we have on the computer.

  list volume 

diskpart list volume



3. Now I have a list of our all drives. Suppose I want to hide Drive D. Now I will select drive D. 
 
   select volume 2 

How to hide drives using cmd



4. Now I will confirm again volume D is selected or not. You will find an asterisk sign if your volume is selected. 

    list volume 

list volume diskpart



5. Now to hide the drive we will remove the letter name from the drive. After removing Letter drive will not be shown in My computer or This Pc.

     remove letter D

remove letter diskpart

You can check D drive is hidden now. 

How to hide drives using cmd



6. If you want to unhide your dive you have to assign a letter again. But before assign your volume must be selected.

     assign letter D

assign letter


6.  How to a checklist of computes in LAN using command prompt 

Steps How to do:- 

  • Open Run ( Press Win Logo key + R) then type cmd then click ok.
Use this command:- 

  net view 

net view command in cmd


7. How to check system properties or system information using command prompt 

Steps How to do:- 

  • Open Run ( Press Win Logo key + R) then type cmd then click ok. (You must have  administrator rights)

Use this command:- 

   systeminfo

systeminfo command in cmd


8.  How to hide files and Folders using command promotes 

Steps How to do:- 

  • Open Run ( Press Win Logo key + R) then type cmd then click ok. (You must have  administrator rights)

Use this command:- 

1.  This command will show all files (Hidden and Non-Hidden)

     attrib

attrib command in cmd


2. This command will let you hide files.

      attrib +h filename or folder name

attrib command in cmd



3. This command will let you unhide files. 

       attrib -h filename or folder name

attrib command in cmd



4. This command will let your system files and folders be system hidden 

         attrib +s +h filename or folder name

attrib command in cmd

      

5. This command will let your files and folder be unhiding files and folders

          attrib -s -h filename or folder name

attrib command in cmd


9. How to enable account using command prompt 

Steps to do:- 

  • Open Run ( Press Win Logo key + R) then type cmd then click ok. (You must have  administrator rights)

Use this command:- 

1. This command will let you check How many users are on the computer
    
     net user

net user command in cmd



2. This command lets you change the password of the user account. 

     net user Administrator 12345

net user administrator



3. This command lets you enable user account using command prompt

      net user Administrator /active:yes

net user in cmd


net user in cmd

10. How to find Serial Number of Laptop or Desktop using Command Prompt

Steps How to do:-

  • Open Run ( Press Win Logo key + R) then type cmd then click ok.

Use this Command:-

   wmic bios get serial number

How to get Laptop serial number in cmd


If You Like It Please Share it with your friends. Also, subscribe to us for more new updates in your email inbox. 


1 comments: