Stopping mandatory SCCM Reboot last minute

 

This is a PowerShell command to stop the automatic reboot that SCCM pushes out when updating a computer.

Source: https://happysccm.com/stopping-mandatory-sccm-reboot-last-minute/


Open an elevated PowerShell window and run the commands:

To use it in a run script and get feedback we need to delay the restart of the service using scheduled task