Forum Discussion

admin-CPH's avatar
admin-CPH
Brass Contributor
May 01, 2022

last reboot

Is there a way to pull a report of all devices' last reboot in Intune?

6 Replies

  • I guess pro active remediations would be possible

    $Uptime= get-computerinfo | Select-Object OSUptime
    if ($Uptime.OsUptime.Days -ge 7){
    Write-Output "Device has not rebooted on $($Uptime.OsUptime.Days) days, notify user to reboot"
    Exit 1
    }else {
    Write-Output "Device has rebooted $($Uptime.OsUptime.Days) days ago, all good"
    Exit 0
    }
    • NielsScheffers's avatar
      NielsScheffers
      Iron Contributor

      Something like Rudy_Ooms_MVP is suggesting can probably also be done with https://www.petervanderwoude.nl/post/working-with-custom-compliance-settings/ (linking to Peter van der Woude's blog, because he explains it better :smile:) which are basically Pro-active Remediations without the remediation, with compliance-flavor sprinkled over it.

       

      All in all, there's no metadata about uptime recorded in Azure AD and/or Intune, so there's no way to report on it without extra config.