How to automatically turn on a computer at a specified time

I am writing a C++ program. this program when running should get a time and after shut down system , automatically turn on at specified time. I searched but could not find my questions answer. My OS is windows 7 and 8. my hardware is 1- motherboard : Asus , CPU : AMD or 2- motherboard : Gigabyte , CPU : Intel Thanks.

5 Answers 5

As some people have said, and as far as I can find it is not possible to schedule a normal PC turn on for a considerable range of PCs unless you use another machine and the wake on LAN capability. However you could use waitable timers to wake from hibernation or suspension. Two sates that can be reached programmatically via the SetSuspendState API function. Other three Windows API functions will help you with the second approach:

I do not recommend to hack any BIOS configuration at all. For safety just use what your system provides in the form of a well documented API. Those hacks sometimes lead to undesired or unexpected behavior.

I’ve redone this answer in response to the comment left.

Firstly for the shutdown command try the following:

Now for waking up. I don’t think it’s possible to start on a desktop without Wake-On-Lan in the BIOS, and setting up a client to send it the magic packet.

So the best way I reckon is to have a device sitting on the same subnet to handle the sending of the start up magic packet. not an awesome option but if definite shutdown is what you are looking for then there are limited ways of getting it back on without manually doing so.

Just as background the magic packet address frame is done in the following format – 6*255 aka 0xFF, destination MAC address repeated 16 times. So if your MAC address is 01:02:03:04:05:06 the frame would look like like so:

FFFFFFFFFFFF010203040506010203040506010203040506010203040506 010203040506010203040506010203040506010203040506010203040506 010203040506010203040506010203040506010203040506010203040506 010203040506010203040506

In c++ the packet itself can be constructed like so, entering in each section of your destination address converted.

Then create a sender as like so, which will broadcast the packet to all devices on the subnet but the frame just constructed communicates the MAC address:

Do you always boot your computer at the same time each day? You can have it automatically power on at a time of your choice so it’s ready to go when you sit down in front of it.

This may seem unnecessary with modern PCs that boot quickly, but we love automating tasks. This could be useful to have your PC automatically boot in the middle of the night to run downloads at off-hours, too.

Look for an Option in Your PC’s BIOS or UEFI

This option is available on many PCs, but not all of them. Whether this option is available (and what it looks like) depends on your PC’s hardware.

To find the option, you’ll need to visit your PC’s UEFI or BIOS settings screen. (UEFI is the modern replacement for the traditional PC BIOS.) To access it, restart your computer and press the appropriate key during the boot process—it’s often F11, Delete, or Esc. It may be displayed on your computer during the boot-up process or your PC may boot too quickly to display the screen.

On some PCs, you may instead have to select a “UEFI Firmware Settings” option under Troubleshoot > Advanced Options on Windows 10’s advanced boot options screen. Hold the “Shift” key while clicking the “Restart” option in Windows 10 to access the boot options.

For more information on how to access the UEFI or BIOS settings screen, consult your computer’s manual. If you assembled your own PC, consult the motherboard’s manual.

How to automatically turn on a computer at a specified time

In the UEFI or BIOS settings screen, look for an option that will boot your PC on a schedule. On an HP PC we have, the option was under Advanced > BIOS Power-On.

Here, we can choose a power-on time and which days of the week it applies to.

How to automatically turn on a computer at a specified time

The available options and what they’re called will depend on your PC. The option won’t be available on all PC configurations, so your PC may not offer it.

For example, Lifehacker‘s David Murphy found this option at Advanced Settings > APM Configuration > Power On By RTC. (Those acronyms refer to “Advanced Power Management” and “Real-Time Clock,” respectively.) You may have to do some digging in the setup screen to find it.

How to Log In and Run Programs Automatically

If you want to save extra time—or ensure your PC runs specific applications and tasks when it boots—you can change some extra settings.

To have your PC automatically sign into the Windows desktop when it boots, you can set Windows 10 to sign in to an account automatically. This option has some security drawbacks, but it’s available and it’s your decision whether you want to use it.

You can also have Windows automatically start any program when you sign in. Here’s how to add your own preferred programs to the Windows startup process.

With Windows set to start, sign in, and launch programs automatically at a specific time, you can have your PC do more than just boot automatically—you can automatically accomplish and start tasks at a specific time.

How to automatically turn on a computer at a specified time

How to Make Your PC Wake From Sleep Automatically

If there’s no option to enable automatic startup in your PC’s BIOS or UEFI setting screen, you can have your PC wake from sleep automatically. This is also useful if you put your PC to sleep when you aren’t using it.

To set this up, use the Task Scheduler to create a task that wakes your computer at a customizable time. You’ll have to enable “wake timers” in Windows, too, or the task won’t activate. Once you have, you can put your PC to sleep and it’ll wake at your chosen time.

Windows machine allows users to schedule computer to turn on, as a result, you can set computer to auto-start on a schedule. To schedule computer to auto-start at a precise time, we have to enable computer to wake up on alarm and then set auto-start in Task Scheduler.

Tips: If you want to set auto shutdown in Windows 10 computer, refer to 4 Ways to Set Auto Shutdown in Windows 10.

Enable Computer to Auto-Start in BIOS

Step 1: Start or restart your computer and keep pressing a hotkey such as Delete or F2 to enter the BIOS settings.

Step 2: Use the direction keys to locate to Power Management tab.

Step 3: Locate to the Resume by alarm to change settings.

How to automatically turn on a computer at a specified time

Schedule Computer to Auto-Start with Task Scheduler

Step 1: Input Task Scheduler in the Cortana and hit Enter to open it.

How to automatically turn on a computer at a specified time

Step 2: Click on Task Scheduler Library and then tap on Create Task in the right sidebar. On the other way, you can right-click on Task Scheduler Library and select Create Task as well.

How to automatically turn on a computer at a specified time

Step 3: Type a name for the task and tick on Run whether user is logged on or not and Run with highest privileges.

How to automatically turn on a computer at a specified time

Step 4: Go to Triggers tab, click on New.

How to automatically turn on a computer at a specified time

Step 5: Change the settings to your needs.

How to automatically turn on a computer at a specified time

Step 6: In the action tab, click on New and type a name for the action.

How to automatically turn on a computer at a specified time

Step 7: Locate to the Conditions tab, click on the checkbox of Wake the computer to run this task.

How to automatically turn on a computer at a specified time

Step 8: You can change some settings in the Settings tab. Now you have accomplished creating a new task for auto-starting of computer. Tap on OK button and input your login password then you will back to the Task Scheduler window. Right-click on the task and Run it.

How to automatically turn on a computer at a specified time

Why Does My Windows 10 Restart after Entering Sleep Mode?

At times, few of computers would restart after entering sleep mode, especially for computers set auto start or shutdown. Here are two ways to address the issue.

Way 1: Cancel “Automatically restart” and change advanced settings of battery

Step 1: Open Control Panel, select Small icon next to View by and click on System.

How to automatically turn on a computer at a specified time

Step 2: Click on Advanced system settings on the left sidebar.

How to automatically turn on a computer at a specified time

Step 3: In the System Properties window, click on Settings in Startup and Recovery section.

How to automatically turn on a computer at a specified time

Step 4: Uncheck the “Automatically start“.

How to automatically turn on a computer at a specified time

Step 5: Go back to Control Panel window above and navigate to Power Options > Change when the computer sleeps Change advanced power settings. In the Power Options window, expand Sleep > Allow hybrid sleep. Turn it on next to Settings. Expand Allow awake timer and Enable it.

How to automatically turn on a computer at a specified time

Way 2: Disable device from waking on Magic Packet or pattern match

If the method above doesn’t work, try to disable device from waking on Magic Packet or pattern match.

Step 1: Right-click on Start and select Device Manager.

Step 2: Expand Network adapters and right-click on the wireless network adapter, select Properties.

How to automatically turn on a computer at a specified time

Step 3: In the Advanced tab, click on Wake on Magic Packet and Wake on pattern match, select Disabled in the right side.

We routinely use our PC and it’s likely that we sit in front of the computer at more or less the same time. And every single time, we have to manually turn on the computer and wait for another few minutes before Windows loads up everything (read how to speed up Windows 10). It makes the whole experience tedious and frankly, tiresome. So to solve this issue, we have come up with a short tutorial on how to automatically turn on the PC on a schedule. You can assign specific time and day and your Windows computer will boot up automatically and be ready to use. How cool is that? So without wasting any time, let’s go ahead and learn how to auto-start Windows computers.

Automatically Turn on PC on a Schedule

1. First and foremost, you need to boot into the BIOS or UEFI screen. You can do so by pressing either the Esc, Del, or F11 key while turning on your PC. You can find a comprehensive list of boot keys for different manufacturers from the image below.

How to automatically turn on a computer at a specified time

2. If your motherboard comes preloaded with the UEFI interface then press the “Shift” key and restart your PC. You will boot straight into the Advanced Startup screen. Here, click on Troubleshoot -> Advanced Options -> UEFI Firmware Settings.

How to automatically turn on a computer at a specified time

3. Once you are on the BIOS/UEFI screen, move to the “Power” section and look for any of these terms: Wake up alarm, BIOS Power-on, RTC Alarm, or APM Configuration. You will have to do some digging to find the appropriate option. If the option is not under the power menu then switch to the “Advanced” section.

How to automatically turn on a computer at a specified time

4. After you have found the option, go ahead and enable it. Just below, you can also specify the day and time to automatically turn on the PC. Having done that, now press “F10” and hit enter. It will save the changes and will restart your computer.

How to automatically turn on a computer at a specified time

5. You have successfully set up your PC to automatically turn on on a schedule. In case, you also want to schedule automatic shutdown on Windows 10 then follow the linked guide.

Power On Your PC Automatically and Save Time

So that is how you can automatically turn on the PC on a schedule. The steps are quite easy and doable. Having said that, keep in mind, not all motherboards support Wake Up Alarm or RTC functionality. If your BIOS does not mention any of these terms then it’s likely that your machine lacks this hardware feature. Anyway, you can go ahead and try out the steps. If you are facing any problem then comment down below and let us know. We will definitely try to help you out.

We routinely use our PC and it’s likely that we sit in front of the computer at more or less the same time. And every single time, we have to manually turn on the computer and wait for another few minutes before Windows loads up everything (read how to speed up Windows 10). It makes the whole experience tedious and frankly, tiresome. So to solve this issue, we have come up with a short tutorial on how to automatically turn on the PC on a schedule. You can assign specific time and day and your Windows computer will boot up automatically and be ready to use. How cool is that? So without wasting any time, let’s go ahead and learn how to auto-start Windows computers.

Automatically Turn on PC on a Schedule

1. First and foremost, you need to boot into the BIOS or UEFI screen. You can do so by pressing either the Esc, Del, or F11 key while turning on your PC. You can find a comprehensive list of boot keys for different manufacturers from the image below.

How to automatically turn on a computer at a specified time

2. If your motherboard comes preloaded with the UEFI interface then press the “Shift” key and restart your PC. You will boot straight into the Advanced Startup screen. Here, click on Troubleshoot -> Advanced Options -> UEFI Firmware Settings.

How to automatically turn on a computer at a specified time

3. Once you are on the BIOS/UEFI screen, move to the “Power” section and look for any of these terms: Wake up alarm, BIOS Power-on, RTC Alarm, or APM Configuration. You will have to do some digging to find the appropriate option. If the option is not under the power menu then switch to the “Advanced” section.

How to automatically turn on a computer at a specified time

4. After you have found the option, go ahead and enable it. Just below, you can also specify the day and time to automatically turn on the PC. Having done that, now press “F10” and hit enter. It will save the changes and will restart your computer.

How to automatically turn on a computer at a specified time

5. You have successfully set up your PC to automatically turn on on a schedule. In case, you also want to schedule automatic shutdown on Windows 10 then follow the linked guide.

Power On Your PC Automatically and Save Time

So that is how you can automatically turn on the PC on a schedule. The steps are quite easy and doable. Having said that, keep in mind, not all motherboards support Wake Up Alarm or RTC functionality. If your BIOS does not mention any of these terms then it’s likely that your machine lacks this hardware feature. Anyway, you can go ahead and try out the steps. If you are facing any problem then comment down below and let us know. We will definitely try to help you out.

Move down to Step 1 to find an easy way to get your PC to power up automatically.

Contents

  • 1 Steps
    • 1.1 For a PC
    • 1.2 For a Macintosh
  • 2 Tips
  • 3 Warnings
  • 4 Related Articles
  • 5 Sources and Citations

Steps

For a PC

  1. Restart your computer
  2. Press delete when you get to the screen that says “Press DEL, F1 or F2 key to enter SETUP or BIOS.”
  3. Use the arrow keys to find the “Power Management” tab. Scroll to “Power Up Control. ” Press enter.
  4. Scroll to “Resume by alarm / Power up by alarm. Enable it.
  5. Select wake up Day/Hour/Minute options. (select Daily in wake up Day option, if you want PC to start daily automatically at given time).
  6. Press “Esc” on your keyboard when you have reached the desired power-up time. Say yes when it asks for confirmation of the changes.
  7. Wait for your computer to reboot. Turn it off each night. It will boot itself up at the desired time.

For a Macintosh

On a Macintosh you can bypass all the complicated rewiring and reprogram your computer.

  1. Go to System Preferences.
  2. Click on the “Energy Saver.”
  3. Click on the “Schedule” button.
  4. Check the box that says “Start up or Wake.” Select the frequency you would like it to do so from the drop down menu, and use the arrow buttons to choose a time. Repeat for “Sleep” if desired. Press “OK” when done.

How can I make my computer restart automatically everyday? Windows 10.

Replies (3) 

You can use the Task Scheduler to shutdown, restart or perform any action at one time or periodically. To do so, you may follow the steps below:

1. To make your computer shut down at a particular time, type taskschd.msc in start search and hit Enter to open the Task Scheduler.
2. In the right panel, click on Create Basic Task.
3. Give it a name and a description if you wish and click Next.
4. When asked When do you want the task to start, select what you want. Click Next.
5. Select the Start date and time.
6. Clicking Next will bring you to the Action page. Here select Start a program and click Next.
7. Type shutdown on the Program/script space and /s /f /t 0 in the Add arguments box. If you want the shutdown to commence after say 60 sec, type 60 instead of 0 here.
8. Click Next to review all and finally click Finish. Your computer will shutdown at the designated day and time.

Take not that in a CMD window, you may run shutdown /? to see all the available switches. To schedule restarts, you need to use the /r parameter instead of the /s parameter. To log off the current user use /l.

Let us know if you need further assistance.

209 people found this reply helpful

Was this reply helpful?

Sorry this didn’t help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How to automatically turn on a computer at a specified time

Windows, Mac OS X, and Linux all allow you to schedule boot-ups, shut-downs, and wake-ups. You can have your computer automatically power up in the morning and automatically shut down at night, if you’d like.

This is less necessary than ever thanks to sleep mode — a typical laptop just enters low-power sleep mode it can quickly resume from when it’s not being used — but may still be useful for desktop PCs.

Windows

Windows allows you to set boot-up and shutdown times through the Task Scheduler. Scheduled tasks can run the “shutdown” command, shutting down your computer at a specific time. You could also run other commands to put the computer to sleep or hibernate it. Here are the commands you’ll need:

  • Shut Down: shutdown.exe -s -t 00
  • Hibernate: rundll32.exe powrprof.dll,SetSuspendState
  • Sleep: rundll32.exe powrprof.dll,SetSuspendState 0,1,0

Through the magic of the task scheduler, you can even have Windows wait until you’re no longer using your computer to shut it down. It won’t automatically shut down on you while you’re using it if you stay up a bit late one night.

You can also create scheduled tasks that wake your computer from sleep. Assuming your computer is sleeping, and not fully shut down — you can put it to sleep yourself or use a scheduled task that puts it to sleep — this schedueld task when wake your computer up.

How to automatically turn on a computer at a specified time

Mac OS X

This option is available in the System Preferences window on a Mac. Click the Apple menu, select System Preferences, and then click the Energy Saver icon in the System Preferences window.

Click the “Schedule” button at the bottom of the Energy Saver preferences and use the options here to schedule a startup or wake time for your Mac. You can also schedule a Sleep, Restart, or Shut Down time and choose which day of the week your scheduled times are used for — weekdays, weekends, a specific day, or all days of the week.

If you have a MacBook, the scheduled startup will only occur when it’s plugged in. This prevents battery drain and ensures your laptop won’t decide to boot up when it’s sitting in a bag somewhere.

How to automatically turn on a computer at a specified time

Linux

The rtcwake command allows you to schedule wake-ups on Linux. This command puts your computer to sleep, hibernates it, or shuts it down while specifying a time it should wake up again. You could run the appropriate rtcwake command when you go to bed, and it will automatically boot back up at your scheduled time.

The rtcwake command can also be used just to schedule a startup time, but not to put your computer to sleep immediately. Put it to sleep or shut it down on your own schedule and it will wake up when you decide it should.

To fully automate this, you could create one or more cronjobs that run the rtcwake command at a specific time.

Wake-on-LAN

All types of computers can accept “Wake-On-LAN,” or WoL, magic packets. Support for Wake-on-LAN is baked into a computer at the BIOS or UEFI firmware level, below the operating system itself. When using Wake-on-LAN, a computer that’s shut down or asleep continues providing power to its network interface. This is usually a wired Ethernet connection, but you can also set a computer to accept Wake-on-LAN packets sent over Wi-Fi. When it receives an appropriately crafted packet, it will wake the computer back up again.

This option is generally enabled by default on desktop computers, but it may not be enabled on laptop computers to save battery power — especially not on the Wi-Fi interface. You’ll have to ensure Wake-on-LAN is enabled on your computer first and try it out.

Once you have Wake-on-LAN working, you could set up a device to send Wake-on-LAN packets to other devices on a schedule. For example, we’ve covered using a router running DD-WRT to send Wake-on-LAN packets on a schedule, allowing you to wake any device from your router and configure all the wake times in one place.

How to automatically turn on a computer at a specified time

By default, most computers will automatically put themselves to sleep or hibernate after a certain amount of time when they’re not being used. If you want your computer to stay running even when you’re not there, change its settings so it won’t automatically sleep or hibernate.