HOW TO SHUTDOWN/RESTART/LOGOFF/LOCK YOUR COMPUTER THROUGH COMMAND PROMPT(CMD)
For Shutdown
Step-1
Open Run by searching on start menu
Step-2
Type "cmd" in run and Click on OK
Step-3
Command prompt will appear on your screen. Now type
"shutdown -s -t (time in seconds)" in command prompt and press enter..
ex-shutdown -s -t 120
Result-
For Cancel shutdown
Step-1
type "shutdown -a" in command prompt
and your computer will not shutdown
Note-do this within time you entered in shutdown command.
For Logoff
Step-1
You have only to type logoff in run and click on OK
For Restart
Step-1
Just type "shutdown -r" in command prompt and press enter.
For Lock
Step-1
Just type "rundll32.exe user32.dll, LockWorkStation" in run and Press OK.
For any other Problem related to computer please comment below or send me mail on asatiabhas26032001@gmail.com