You don't need to use remediation script for that if that is too complex. I can use just a regular powershell script which creates Scheduled Task with restart command.
Schedule windows device reboot through remediation script using Intune
Schedule reboot script through remediation script using Intune
2 answers
Sort by: Most helpful
-
Pavel yannara Mirochnitchenko 12,576 Reputation points MVP
2024-09-18T14:07:04.6766667+00:00 -
ZhoumingDuan-MSFT 13,085 Reputation points Microsoft Vendor
2024-09-19T02:43:27.0233333+00:00 @Zimasa Mpahlwa, Thanks for posting in Q&A.
From your description, I know you want to schedule reboot windows device through remediation script using Intune.
Based on my research, we can create a PowerShell script to schedule reboot windows device and upload it into Intune.
Here are some links you can refer.
https://woshub.com/how-to-create-scheduled-task-using-powershell/
https://community.spiceworks.com/t/reboot-intune-devices/939571
Non-official, just for reference.
Or we can create a configuration policy to schedule reboot windows device.
https://www.prajwaldesai.com/schedule-reboot-for-windows-devices-using-intune/
As for schedule reboot device through remediation script using Intune, here is a link you can refer.
Endpoint Analytics Proactive Remediations - MSEndpointMgr
Non-official, just for reference.
Hope above information can help you. If there is any update, feel free to let me know.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.