I have a Windows 10 managed machine and I want to prevent the forced restart requested by Software Center software.
- Make sure you have administrator rights on the running windows. (If you don't this solution is not for you)
- Download/Extract the sysinternals-suite https://download.sysinternals.com/files/SysinternalsSuite.zip
- Create and save a .cmd file with the following contents
taskkill /F /IM SCnotification.exe pssuspend.exe CcmExec.exe -nobanner shutdown -a ```
- Run the windows terminal with administrator privileges, and from there execute the .cmd (I named the file stop-software-center.cmd)
- Check that the CcmExcec.exe process was suspended.
This just adds to acabra85's answer, but you don't need SysInternals Suite.
You can try stopping the CcmExec service from Task Manager > Services, I believe you need to have administrator rights for this. This kills the SCNotification.exe as well (the window with the timer).
shutdown -a command to abort the scheduled reboot (if any).