Forum Discussion
dmarquesgn
Mar 13, 2023Iron Contributor
Restart Windows 10 and 11 from MDE
Hi,
I need to be able to restart some Windows 10 and 11 due to the application of updates.
Is it possible to force a Windows restart from the MDE interface or by any query?
Thanks
- P4tr8kBrass ContributorHi,
by using MDE no but you can use Intune to force restart.
https://learn.microsoft.com/en-us/mem/intune/remote-actions/device-restart#restart-a-device- dmarquesgnIron ContributorHi,
Thanks for the reply. I know in Intune I can restart the machines, but that raises a lot of issues. This way I would have to create a script, to check for something within Defender, and then issue a restart request to Intune to those specific machines.
Also, does Intune allows any control over the restart, like confirmation, timings, etc?
Thanks- P4tr8kBrass ContributorUnfortunately not. Here is no any information for user and restart should be performed immediately. But if you want to play with scripts you can write powershell script (force restart) and upload and run this script using Live Response session. But it's a long process.
- rahuljindal-MVPBronze ContributorDon’t really understand the ask here. Application of which updates? OS?
- dmarquesgnIron ContributorYes, the goal is to guarantee that the restart is done to force the Windows update process.
- rahuljindal-MVPBronze ContributorOk. I am not quite sure why you want to leverage Defender to achieve status against a device reboot. Maybe this is a specific use case, but normally Intune will be go to tool to manage security updates if you are licensed and the devices are enrolled. Maybe look at update rings and custom compliance in Intune if not already done.
- cyb3rmik3Iron Contributor
Hello dmarquesgn,
while there is no restart option through the GUI of M365 Defender, you can try the following:
- Perform a live response at the endpoint of interest
- Create a powershell script containing "Restart-Computer -Force" command
- Upload it in the library
- Run the .ps1 script
If a user is logged in, you will probably see an error indicating "The system shutdown cannot be initiated because there are other users logged on to the computer.". Otherwise, the endpoint will restart.
If I have answered your question, please mark your post as Solved
If you like my response, please consider giving it a like