Ben Partouche 0 Posted July 31, 2023 Share 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 Link to comment Share on other sites More sharing options...
Administrators Solution Marcos 5,280 Posted July 31, 2023 Administrators Solution Share Posted July 31, 2023 You can user eRMM to get information about a pending restart: Link to comment Share on other sites More sharing options...
Ben Partouche 0 Posted July 31, 2023 Author Share 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 Link to comment Share on other sites More sharing options...
Ben Partouche 0 Posted July 31, 2023 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts