Intune - Detection and Remediation Script Schedule

Ahmed Alshatawi 145 Reputation points
2025-02-14T16:42:38.9166667+00:00

Hello!
I have a question about detection and remediation in Intune—how they work and when they run. I created a detection and remediation script in Intune and scheduled it to run every day at 4 PM.

  • Detection: The script will detect if a device hasn’t been rebooted for 14 days or more.
  • Remediation: The script will force a reboot if no user is logged in. If a user is logged in, it will notify the user 10 minutes before forcing a reboot.

Question: Will the detection script run daily at 4 PM, and will remediation execute if the device hasn’t been rebooted for 14 days? What happens if the device is in sleep mode, powered off, or the lid is closed? Will the detection and remediation scripts still run in these cases?

I’m also wondering whether the detection and remediation scripts will execute only when the device is powered on, or if they will still run while the device is in sleep mode or the lid is closed.
Additionally, should I keep the setting below as “No”?
User's image

Windows Autopilot
Windows Autopilot
A collection of Microsoft technologies used to set up and pre-configure new devices and to reset, repurpose, and recover devices.
501 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,554 questions
0 comments No comments
{count} votes

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.