Ben Partouche 0 Posted July 31 Share Posted July 31 Hello I would like to know if the programm flag in registry or in a folder when he need a reboot ? Thanks Quote Link to comment Share on other sites More sharing options...
Administrators Solution Marcos 4,841 Posted July 31 Administrators Solution Share Posted July 31 You can user eRMM to get information about a pending restart: Quote Link to comment Share on other sites More sharing options...
Ben Partouche 0 Posted July 31 Author Share Posted July 31 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 Quote Link to comment Share on other sites More sharing options...
Ben Partouche 0 Posted July 31 Author Share Posted July 31 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.