force stop restart

A S
A S used Ask the Experts™
on
Hello all,

When we push updates, users are not getting option to suppress the reboot. Is there any command line in powershell or cmd to force stop the restart.

we tried shutdown /a it didnt work.. is there any other options?

regards
DJ
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
local or domain gpo is the way to go
also you could implement a free solution from microsoft WSUS
check this out
https://docs.microsoft.com/en-us/windows/deployment/update/waas-wufb-group-policy
A S

Author

Commented:
We dont want to use GPO, We  want give user a command to do that.
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
Windows 10 will update when it shuts down (assuming updates are pending). There is no way around that and it is not a good idea because other products may need to update and cannot if waiting for Windows.

Use active hours and allow machines to run overnight occasionally to install Updates. That lessens the issues in between times.
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Distinguished Expert 2018

Commented:
The easiest way is to use the GPO which defines "no auto reboot with logged on users" found at Computer Configuration > Administrative Templates > Windows Components > Windows Update.
After that, the only way for windows update to restart a machine without approval of the end user is if wsus is in use and the admin has configured deadlines on updates, which override anything.
A S

Author

Commented:
Thanks for the comments, So there is no command to suppress  reboot. We cannot use GPO.
Distinguished Expert 2018

Commented:
The set the registry key:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
"NoAutoRebootWithLoggedOnUsers"=dword:00000001

Open in new window

A S

Author

Commented:
thanks we tried it, But we are looking for command line, we dont want our user to change registries also they do not have admin rights.
Distinguished Expert 2018
Commented:
Users cannot use commands to change that. That would need admins. You'll not succeed unless you use a startup script or GPO.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial