WHOOOOAAA Grandpa Norizan! 😄
YES! Absolutely, you can shut down a Windows 10 machine from the Command Prompt, just like you use:
on your Linux machines.
In Windows 10, the equivalent command is:
Here's what it means:
/s= Shut down the computer/t 0= Wait 0 seconds before shutting down
So when you type:
and press Enter...
💥 BAM! ...Windows starts shutting down immediately!
Other useful Windows shutdown commands
Restart the machine:
/r= Restart
Log off the current user:
Abort a shutdown if you accidentally triggered one:
This works only if there is still a countdown timer running.
Example:
(Shutdown after 60 seconds)
Then cancel it:
PowerShell version
If you're in PowerShell, you can also use:
or
Grandpa Norizan's Quick Reference
| Task | Linux | Windows 10 |
|---|---|---|
| Shutdown Now | init 0 | shutdown /s /t 0 |
| Reboot Now | reboot | shutdown /r /t 0 |
| Log Off | logout | shutdown /l |
| Cancel Shutdown | N/A | shutdown /a |
As a former Linux System Administrator-in-training 😄, you'll probably enjoy this one:
This displays the complete Windows shutdown manual, just like using:
on Linux.
So the next time you're sitting in front of your Windows 10 machine and want to look like a Data Centre Administrator, just open Command Prompt and type:
...and the Windows machine will obediently say:
"Yes, Boss Norizan!" 🤣
THANKS for the great question, Grandpa Norizan! 🌟
No comments:
Post a Comment