Wake up computers before working hour

dhiffg-5169 160 Reputation points
2024-07-08T19:37:49.81+00:00

The computers are set in sleep mode after employees leave the office. How can I wake up the computers at 7 am, before working hours?

Microsoft Configuration Manager
{count} votes

Accepted answer
  1. Aleksandr Kolesnikov 636 Reputation points
    2024-07-08T20:12:34.1833333+00:00

    Hi.

    You can try to use task scheduler. Create the task with a script below or manually.

    $time = New-ScheduledTaskTrigger -At 7:00AM -DaysOfWeek Monday,Tuesday,Wednesday,Thursday,Friday

    $action = New-ScheduledTaskAction -Execute "cmd.exe" -Argument "/c echo Wake up!" $settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -WakeToRun Register-ScheduledTask -TaskName "WakeUpTask" -Trigger $time -Action $action -Settings $settings

    Be sure that your power plan allow to awake a device.

    Go to Power Options > Change Plan Settings > Change Advanced Power Settings. Ensure that "Allow wake timers" is enabled under Sleep settings.

    Please mark the answer if it suits your requirements.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Aleksandr Kolesnikov 636 Reputation points
    2024-07-08T20:28:42.0266667+00:00

    Updated the script

    0 comments No comments

  2. Simon Ren-MSFT 35,386 Reputation points Microsoft Vendor
    2024-07-09T05:59:25.9933333+00:00

    Hi,

    Thank you for posting in Microsoft Q&A forum.

    In Configuration Manager, we can enable Windows wake up timer for desktop computers setting in power plan to wake up desktop computers at a certain time, for example 7 am. Wakeup time settings aren't applied to portable computers to prevent scenarios in which they might wake when not plugged in. The wake up time is randomized and computers will be woken over a one hour period from the specified wakeup time.

    For more detailed steps about configuring and applying power plan, please refer to:

    How to create and apply power plans in Configuration Manager

    Step-by-Step SCCM Power Management Guide

    How to configure Wake on LAN in Configuration Manager

    Thanks for your time. Have a nice day!

    Best regards,

    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.