Forum Discussion

admin-CPH's avatar
admin-CPH
Brass Contributor
Apr 29, 2022
Solved

Schedule PC reboot via Endpoint

Dear All,

How do Schedule all windows devices to reboot with a warning message via Endpoint?

 

Thanks,

  • Hi admin-CPH ,

     

    they are couple of ways, but this is what I use. Make sure you target devices you want.

     

    This setting sets a Onetime reboot on a schedule we set via Custom OMA-URI setting. This creates a Scheduled Task on the device to trigger “deviceenroller.exe -ForcedReboot” at the scheduled time.

    1.Go to endpoint.microsoft.com

    2. Navigate to Device configuration ->  Profiles -> Create profile > Add.

    OMA-URI: ./Vendor/MSFT/Reboot/Schedule/Single

    DataType: String

    Value : 2022-04-30T20:00:00Z

     

    Note: The Value must be in the above format and it is in UTC. Convert the value according to the required time zone and apply

     

    3. Assign to the group where the enrolled user is present. If it is user less device, assign to the device group.

    4. Trigger Sync on the  device.

    5. You can see the schedule on the device as below under  Task Scheduler.  (On Windows 10 Desktop only)

              Microsoft\Windows\EnteriseMgmt\<EnrollmentID GUID>\Reboot

    6. Device will show a display pop up notification at the scheduled time and will reboot after 60 Seconds.

  • Adin_Calkic's avatar
    Adin_Calkic
    Steel Contributor

    Hi admin-CPH ,

     

    they are couple of ways, but this is what I use. Make sure you target devices you want.

     

    This setting sets a Onetime reboot on a schedule we set via Custom OMA-URI setting. This creates a Scheduled Task on the device to trigger “deviceenroller.exe -ForcedReboot” at the scheduled time.

    1.Go to endpoint.microsoft.com

    2. Navigate to Device configuration ->  Profiles -> Create profile > Add.

    OMA-URI: ./Vendor/MSFT/Reboot/Schedule/Single

    DataType: String

    Value : 2022-04-30T20:00:00Z

     

    Note: The Value must be in the above format and it is in UTC. Convert the value according to the required time zone and apply

     

    3. Assign to the group where the enrolled user is present. If it is user less device, assign to the device group.

    4. Trigger Sync on the  device.

    5. You can see the schedule on the device as below under  Task Scheduler.  (On Windows 10 Desktop only)

              Microsoft\Windows\EnteriseMgmt\<EnrollmentID GUID>\Reboot

    6. Device will show a display pop up notification at the scheduled time and will reboot after 60 Seconds.

    • VinodS2020's avatar
      VinodS2020
      Brass Contributor
      Hi Adin_Calkic

      Thanks for your solution on this. I have similar requirement where we wanted to restart/reboot the devices at least once in a week but also we wanted to give a time for users to extent that reboot period for example time is schedule 4 PM and user should get pop-up to extend it to next 24 hours or minimum as we setup in the configuration so it that possible using this method?

      • snadim31's avatar
        snadim31
        Copper Contributor

        VinodS2020 

         

        Were you able to find a solution of your client machine reboot requirement ?

    • admin-CPH's avatar
      admin-CPH
      Brass Contributor
      If I scheduled a single reboot at 3 pm and the device was down, it will reboot after becoming up?

Resources