Intune - Detection and Remediation Script Schedule
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”?