Forum Discussion
admin-CPH
May 01, 2022Brass Contributor
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
}- NielsScheffersIron 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
) 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.
- 😛 and what about me explaining the custom compliance policies and how to create them and troubleshoot them 😛
https://call4cloud.nl/2021/11/the-last-days-of-custom-compliance/