Code Yarns ‍👨‍💻
Tech Blog ❖ Personal Blog

Windows: Shutdown or Restart from Command-Line

📅 2010-Jan-27 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ restart, shutdown, windows ⬩ 📚 Archive

While connected to a computer over RDP, the Shutdown or Restart options are not available in the Start menu.

To shutdown from command-line:

$ shutdown /s /t 0

To restart from command-line:

$ shutdown /r /t 0

PS: Curious to know why Shutdown/Restart are not available over RDP? See “Logoff” and “Shutdown” Are Missing from the Start Menu When You Use Remote Desktop.

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 • 📧