• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 447
  • Last Modified:

Disabling Windows 7 Restart after Windows Update

In windows xp I used to have a registry key that I could just double click in XP to create this Key for me to stop the computer from auto restarting after an update.

I came across this article to show you how to jump into regedit and create the key in windows 7... Since I will need to do this to 30 computers or so... I thought this would be very time consuming..

Is there a way I could create a shortcut to make this change for me on a double click?




1 Solution
Highlight the dword afte you've created it and choose file, export, save it and then you can double click it to add it to any machine's registry.
You should highlight and export the AU key rather.
Set the registry key on one and then extract it and use group policy to push it out.

Or maybe this would be a better solution
technet blog
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

And if you don't want to do an export first... You can use the native REG command...

The following command adds the value to the local machine.
REG ADD HKLM\SOFTWARE\Policies\Microsoft\WindowsWindowsUpdate\AU /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f

This command executes the command against a remote computer (replace "ComputerName with the target's actual name.)
REG ADD \\ComputerName\HKLM\SOFTWARE\Policies\Microsoft\WindowsWindowsUpdate\AU /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f

Or.. put the following line in a .cmd file and call the file with just the target host name
REG ADD \\%1\HKLM\SOFTWARE\Policies\Microsoft\WindowsWindowsUpdate\AU /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f

Example: NoReboot.cmd targetComputer

If you have a list of the computers in text format, you can use the FOR command to run the command against each of the computers in the list.
meshoxfordAuthor Commented:
Wow a lot of good answers, jeff where do I enter that command in Run?

And DM ... so its AU?
Yes the key you create in the article is AU.  Select that folder in regedit and choose file, export.
You can add it to a login script (the first one); in the Run dialog or the command prompt.

If you want to see the results of the command, open the command prompt by putting CMD into the Run dialog.

Will even work with Sweeps GPO example... The file is REG.EXE and the rest goes in Parameters.

Or... Just run (double-click) the attached .cmd file on each computer. ;)
I just realized, I'm missing a slash between Windows and WindowsUpdate... Corrected command lines are below along with a corrected attachment:

REG ADD HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f

REG ADD \\ComputerName\HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f

My bad!
David Johnson, CD, MVPOwnerCommented:
Windows Registry Editor Version 5.00


copy and paste into "no autoreboot.reg"
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now