Ben Partouche 1 Posted July 31, 2023 Posted July 31, 2023 Hello I would like to know if the programm flag in registry or in a folder when he need a reboot ? Thanks
Administrators Solution Marcos 5,732 Posted July 31, 2023 Administrators Solution Posted July 31, 2023 You can user eRMM to get information about a pending restart:
Ben Partouche 1 Posted July 31, 2023 Author Posted July 31, 2023 Great thanks I have a tool for manage reboot in all devices in powershell so I can use powershell in path for test if the device need reboot or not
Ben Partouche 1 Posted July 31, 2023 Author Posted July 31, 2023 i wrote a little Powershell fonction function PendingRebootEset(){ $EsetFolder = "C:\Program Files\ESET\ESET Security\" $TestEsetFolder = Test-Path $EsetFolder if ($TestEsetFolder -eq $true){ cd $EsetFolder $Reboot = cmd.exe /c ermm get protection-status if ($reboot -match "Device restart required"){ return $true }else{ $false } } } Regards Kaneda740 1
Recommended Posts