force stop restart

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
A SAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mfgsilvaCommented:
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
0
A SAuthor Commented:
We dont want to use GPO, We  want give user a command to do that.
0
JohnBusiness Consultant (Owner)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.
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

McKnifeCommented:
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.
0
A SAuthor Commented:
Thanks for the comments, So there is no command to suppress  reboot. We cannot use GPO.
0
McKnifeCommented:
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

0
A SAuthor 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.
0
McKnifeCommented:
Users cannot use commands to change that. That would need admins. You'll not succeed unless you use a startup script or GPO.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.