Forum Discussion

dmarquesgn's avatar
dmarquesgn
Iron Contributor
Mar 13, 2023

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

    • dmarquesgn's avatar
      dmarquesgn
      Iron Contributor
      Hi,
      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
      • P4tr8k's avatar
        P4tr8k
        Brass Contributor
        Unfortunately 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.
    • dmarquesgn's avatar
      dmarquesgn
      Iron Contributor
      Yes, the goal is to guarantee that the restart is done to force the Windows update process.
      • rahuljindal-MVP's avatar
        rahuljindal-MVP
        Bronze Contributor
        Ok. 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.
  • cyb3rmik3's avatar
    cyb3rmik3
    Iron 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

Resources