Arrêt CMD
# Schedule an automatic shutdown (7200 = seconds)
shutdown /s /t 7200
# Cancel Auto Shutdown Schedule
shutdown -a
Erezzor
# Schedule an automatic shutdown (7200 = seconds)
shutdown /s /t 7200
# Cancel Auto Shutdown Schedule
shutdown -a
shutdown -s -t 30
Note: 30 equals how many seconds you want it to take before shutting down
In CMD for Windows 10 and 11:
shutdown /s (shuts down)
shutdown /r (restarts)
shutdown /i (opens UI for remote shutdown)
shutdown -s -t 300
#include <iostream>
#include <cstdlib>
using namespace std;
int main() {
system("C:\\WINDOWS\\System32\\shutdown /s");
}