- Scheduling automatic shutdown or restart of your PC is possible with native Windows tools and external applications.
- There are specific methods for both Windows and Mac, including using Task Scheduler, the command line, and BIOS settings.
- Third-party tools offer advanced options, such as task repetition and custom conditions to automate startup and shutdown.

¿How to schedule your PC to restart (or shut down) only at a specific time? Have you ever wondered How to make your computer shut down or restart only at a specific time? This feature is very useful for saving energy, prolonging the lifespan of your computer, or simply keeping your PC from being on when you no longer need it, especially if you tend to leave tasks running overnight or when you're away from home.
The truth is that schedule your PC to shut down or restart It's much simpler than it seems, whether you're using Windows or Mac. In this guide, you'll find, explained step by step and clearly, all the possible ways to achieve your goal, taking advantage of both built-in tools and external applications, as well as different alternatives depending on the version of your operating system.
Native Windows Methods: Solutions without installing anything
In most occasions, Windows already includes advanced features that allow you to schedule the automatic shutdown, restart, and even startup of your device. Below is a comprehensive review of all of them.

Using Task Scheduler in Windows
El Task Scheduler Windows is one of the least-known, yet most powerful tools in the system. It allows you to automate actions such as shutting down your computer, restarting it, running programs or scripts, all at a specific date and time or under certain conditions (inactivity, frequency, etc.).
- Step 1: Click the Start menu, type “Task Scheduler,” and open the application.
- Step 2: In the right panel, select “Create Basic Task.” Give it a name and, if desired, add a description so you can easily find it later.
- Step 3: Next, choose how often you want the task to run: daily, weekly, monthly, or just once. Then, set the exact date and time for the shutdown or restart.
- Step 4: In the “Action” section, select “Start a program” and enter shutdown.exe as the program to be executed. In the arguments field, type /s if you want to turn off or /r if you want to restart. If you want it to happen within a specific time, add /t . For example: uterine shutdown.exe / s / t 3600 so that it turns off in an hour.
- Step 5: Review the data and complete the task. You've now scheduled an automatic shutdown or restart.
Do you want to schedule a shutdown when inactivity is detected? It's very easy: in Task Scheduler, select the task and go to Properties. In the "Conditions" tab, select the option to start the task only if the PC is inactive for "x" minutes. This way, the shutdown will occur after that period of inactivity.
Schedule a shutdown or restart from the command line
For users who prefer to get straight to the point or who are already used to using CMD, You can schedule a shutdown or restart with a simple command.It's really fast and doesn't need any menus or wizards:
- Open Command Prompt (CMD): press Win + R, writes cmd and hit Enter.
- Run the command: To turn off the computer after a certain time, use shutdown /s /t . Example: shutdown / s / t 1800 (for 30 minutes).
- To restart: shutdown /r /t .
- Hibernate: shutdown /h /t .
- Sign off: shutdown /l /t .
- Cancel any scheduled shutdown or restart: shutdown / a.
This method is useful if you know the exact amount of time you want your PC to shut down. Remember: the time is always entered in seconds (an hour is 3600 seconds).
Schedule shutdown using the Run tool

If you find it tedious to open CMD or prefer something more direct, you can also use the Run window:
- press Windows + R to bring up the Run window.
- Enter the command shutdown /s /t and click OK.
The result will be the same: the PC will notify you that the operation is scheduled and you can cancel it if you need to with shutdown / a from Run or CMD.
Quick Shortcuts: Shortcuts and scripts to schedule shutdown
Would you like to be able to repeat the operation without having to type commands each time? Windows allows you to create shortcuts on the desktop that schedule shutdown or restart with just a double click:
- On the desktop, right-click in a free area and choose “New > Shortcut”.
- Enter the command, for example: shutdown.exe / s / t 3600.
- Give the shortcut a name and finish.
You can also create a small BAT file from Notepad, by typing the instruction (e.g. shutdown / s / t 7200), and saving it with a “.bat” extension. Each time you run it, it will activate the countdown to shut down your PC.
Scheduling automatic PC startup: Solutions and limitations

While scheduling the shutdown is simple, Scheduling the computer to automatically turn on involves more complicationsThis is because Windows, on its own, can't start the computer if it's completely shut down. Therefore, there are two main paths:
Automatic power on from BIOS/UEFI
Almost all motherboards come with some type of option to have the computer turn on only at a specific timeThe exact procedure varies depending on the manufacturer:
- Restart your PC and enter the BIOS / UEFI (F2, F8, Del key… pay attention to the message when starting the computer).
- Look for the section power management.
- Activate the call function “Resume by alarm”, “Power-On by RTC”, or similar.
- Specify the time and days you want the device to turn on automatically.
- Save and exit BIOS/UEFI.
This method only works if the computer is properly turned off and plugged into a power outlet. If there's a power outage, you can check for the "Automatic turn on after power loss" option to have the computer restart automatically when power is restored.
Advanced On/Off: Third-Party Tools
If you're looking for greater flexibility (for example, running complex tasks, scheduling different repetitions, conditioning the on/off to certain circumstances, etc.), there are free and paid applications that make life easier:
- WakeupOnStandBy: Allows you to schedule your PC to turn on at a specific time/day and execute actions upon startup. Supports recurring configurations and multitasking.
- KetePairsSimple and in Spanish. With it, you can choose the exact shutdown time, with an optional audible warning before executing the action.
- Simple Shutdown Timer: In addition to shutting down, it allows you to restart, hibernate, or suspend the system. These actions can be triggered on a timer or instantly from the command line.
- PC AutoTimer (formerly Auto-Power-on and Shut-down): Very complete, it offers power on and off scheduling, as well as other tasks such as opening files, closing programs, displaying notifications, playing sounds and more.
- power off: Allows you to schedule shutdown, power-up, restart and sleep, with a simple and very intuitive interface.
- RTG Ninja ShutdownEasy to use and free. Schedule a shutdown, restart, or logout in just a few seconds.
- Shutdown Timer Classic, SDClock, Simple Auto Shutdown: Other options for users looking to automate these actions without complications and with extra features such as personalized notifications.
En general, Most of these programs offer free versions, although the more advanced ones may require some payment for premium features.
And for Mac users?
If you have a Apple computer with macOSUntil the Monterrey version, it was possible to schedule the on or off from the system preferences:
- Click the Apple icon > System Preferences > Battery > Schedule.
- You can set when you want your Mac to automatically turn on or off. Remember: your MacBook must be plugged in for Auto-On to work.
Do you have a newer version? In that case, you'll need to use the macOS Terminal and use the official commands provided by Apple, since the graphical option has disappeared in the latest system updates.
Safety Tips and Considerations
Before automating any action, remember some key points to avoid problems:
- Always save your work before the scheduled shutdown runs, as the system may shut down everything without warning beyond the initial message.
- If you run automatic power-on actions, make sure the device is not accessible to uncontrolled third parties, especially if you have active remote access.
- Don't download third-party applications from unknown websites. Always make sure to use official repositories or trusted portals to avoid malware.
- Check the compatibility of the utilities with your operating system version, especially older or newer versions.
If at any time you wish to cancel the automatic shutdown or restart, simply run the command shutdown / a in Windows or delete/disable the scheduled task from Task Scheduler.
Hay Multiple ways to make your computer shut down or restart itself when you decide, either through the tools included in the operating system itself or by using specialized external applications. Choose the one that best suits your needs, whether you prefer quick procedures from the command line, a recurring daily schedule with Task Scheduler, advanced BIOS startup management, or the simplicity of third-party utilities. With these tricks, you'll gain convenience and complete control over when and how your computer shuts down or starts up, optimizing its use and your time. If you need more Windows tutorials, here's the one you need, but you'll find others: How to restart Windows 10 without updating.
Passionate about technology since he was little. I love being up to date in the sector and, above all, communicating it. That is why I have been dedicated to communication on technology and video game websites for many years. You can find me writing about Android, Windows, MacOS, iOS, Nintendo or any other related topic that comes to mind.