+4 votes
320 views
Command restart, shutdown, lock or log out Windows 10 CMD

in Windows 10 by (552k points)
reopened | 320 views

1 Answer

+5 votes
Best answer

1. How to shut down Windows 10 from CMD
2. How to restart Windows 10 from CMD
3. How to log out of Windows 10 from commands
4. How to block Windows 10 from commands

Nowadays, the computer has become an essential work medium for many people and companies, since through PCs we have the possibility of carrying out a number of tasks and storing different information and documents . Thanks to computers we also have the possibility of accessing the web in search of information among other things or of downloading different programs in search of new functions. That is why the amount of things we do in them is immense..

 

 

Every day in Windows 10 we perform specific tasks and one of them is to shut down, restart, lock the computer or log off the session. We do this 99.9% of the time from the Start menu since it is the practical way, but these tasks can be carried out from the command prompt console or from Run.

 

TechnoWikis will explain the commands to shut down, restart, lock or close the current Windows 10 session from there..

 

 

To stay up to date, remember to subscribe to our YouTube channel!   SUBSCRIBE

 

 


1. How to shut down Windows 10 from CMD

 

Step 1

We access the command prompt, there, to turn off Windows 10, we execute:
 shutdown -s -t time 
image

 

Step 2

When pressing Enter we will see the message about how long the system will shut down, it is possible to cancel the shutdown by executing "shutdown -a":

 

image

 

At the bottom we see the confirmation that the scheduled shutdown was canceled.

 


2. How to restart Windows 10 from CMD

 

Step 1

We access the command prompt, and to restart Windows 10 we execute:
 shutdown -r -t time 
When pressing Enter we will see the message indicating the operation:

 

image

 

Step 2

To cancel the restart we execute "shutdown -a" and at the bottom we will be notified of the cancellation:

 

image

 


3. How to log out of Windows 10 from commands

 

Step 1

For this process we open Run from the Start context menu:

 

image

 

Step 2

Now we enter "logoff":

 

image

 

Step 3

Click OK and the current session will be closed:

 

image

 


4. How to block Windows 10 from commands

 

Step 1

For this action, we go back to Run, there we enter:
 rundll32.exe user32.dll, Lock WorkStation 

image

 

Step 2

Click OK to block the equipment:

 

image

 

Step 3

There we press Enter to access the system again:

 

image

 

These are the commands available to perform these operations in Windows 10 through commands..

 


by (3.5m points)

Related questions

+5 votes
1 answer
asked Feb 11, 2021 in WindowsServer by backtothefuture (552k points) | 404 views
+5 votes
1 answer
asked Oct 14, 2020 in Windows 10 by backtothefuture (552k points) | 316 views
+5 votes
1 answer
+3 votes
1 answer
asked Sep 1, 2020 in Windows 10 by backtothefuture (552k points) | 427 views
+4 votes
1 answer
asked Apr 27, 2020 in Windows 10 by backtothefuture (552k points) | 1.8k views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users