Меню Рубрики

Restart windows update windows 10

Stop Windows Update service

This post explains how to stop Windows update service from command line(CMD). Make sure that you open elevated administrator command prompt to execute this command.

How to stop Windows update service

Update service restarts automatically

It’s observed that just stopping the service does not work in some cases and it restarts automatically. In such cases one can disable the service completely by running below command.

Note that these commands to stop or disable service should be run from elevated administrator command prompt. Other wise you will get the following error.

How to start windows update

Neat tip. However, it seems W7 is automatically restarting the Windows Update service every now and then. I’ve changed status to “Manual” under services.msc but the behavior remains. No fun at all.

Hi Carl
FYI everytime you go into windows update it will start the service even though it is set to manual so if you need to look in windows update then stop the service again afterwards.

Run CMD as Admin and “sc config wuauserv start= disabled” will work on Win7Ulti

Please help me to stop the windows update, it is a disaster every time after windows update, totally stupid program, may be next time I should go for apple.

you gott the error because you have’nt run cmd as administrator

Apple is more stupid than the windows.

I cannot get windows update to stop, finish, or go away! How do I get this to stop so I can get back on the computer? It’s a brand new computer, and useless at this point!

Set to disabled and reboot!

Wow thank you for putting this line up here. I needed to restart my windows update and this did the trick

Yes – agreed thanks much appreciated! On a very slow connection so bandwidth is at a premium. This made things much more pleasant.

#Persistent
interval = 600 ; execution interval in seconds
Menu, Tray, Add ; divider line
Menu, Tray, Add, Execute Now, StopService
Menu, Tray, Default, Execute Now
timer_param := -1000 * interval

StopService:
Run %comspec% /c “sc query wuauserv | find “1 STOPPED” & if errorlevel 1 sc stop wuauserv”, , Hide
time = %A_Now%
time += %interval%, seconds
FormatTime, time_string, %time%, Time
Menu, Tray, Tip, Stop Windows Update Service`nNext Execution at %time_string%
SetTimer, StopService, %timer_param%
return

Hi! even thou i star cmd as admin i still get the “error 5 access denied. can someone help me?

go to start menu —> type “cmd” in the search box, wait till cmd shows in the results list, right click on “cmd” and select “run as administrator”

You need to run it from elevated command prompt.

otherwise, check your UAC and if it’s off, turn it on in your account settings.

This information is for those who wish to completely disable Windows 10 automatic updates. It is very simple and requires no real expertise.

1. Bring up your task manager.
2. Select the “Services” tab.
3. Scroll down the lefthand side until you see “wuauserv”. (In the description column to the right, you’ll see “Windows Update”.)
4. Right click on “wuauserv”.
5. In the dropdown box that appears, click on “stop”.

This stops all automatic updates from taking over your computer. In order to get future updates, you will have to follow the same steps, but click on “start” to restart it. I prefer simply to go to Microsoft’s website to find the updates, if I want them at all, which I don’t. I’ve struggled with Microsoft’s updates for years, from Windows 7, Windows 8, Windows 8.1, and now Windows 10. All of them have rendered my computer(s) less functional than they were prior to the updates.

I use a separate security program in conjunction with Windows firewall and find that there is absolutely no need to upload their security updates.

hi, I am having endless problems with my surface pro3, running win10pro. the overwhelming majority of my time spent on this device is occupied by trying to update and keep in functioning without sending me endless notifications. I am an aspiring Linux user, which so far as I can tell, is superior in every way, however, I am concerned if the security is dependable…? I was wondering what the security program is that you referenced? and would be eager to hear any other suggestions/tips/opinions?

I tried this and got a message that access is denied.

Same problem on my PC. Svchost.exe takes continuously almost 100% processor time.
Stopped wuauserv in the way described above and the processor is free. However after a restart it is running again. Same after stopping it via the command: net stop wuauserv.
Anybody knows how I can stop this wuauserv forever.

You need to disable the service using sc command. Added these commands in the post.

Hi all, a tip for all of those having issues with Windows update, if you go to services.msc and stop the service in the second tab you can select a user to run the service with afterwards.
So you only need to put a valid user and then change the password of that user and voila! it wont ever be able to run again since it will be trying to run with an invalid user… 🙂

I wind up stopping and disabling this service every day or two, yet somehow Windows keeps turning it back to Automatic and running it! (on an older laptop which has to stay at XP)

Just want to say Thank YOU! I got nearly crazy (even more than normal) because my laptop was making so much noise while windows was checking updates for hours. Tried to close it through task manager to no avail but this tip worked as a charm.
I had no problems at all that was until windows installed updates and I could not get into windows anymore. Thanks no thanks. So now I am going to try to see if I can download the updates one by one or so. Thanks again. Love the sound of silence

Surely it would be much easier to use computer management services scroll down to windows update and apply the above directly with the advantage that you can see what you are actually doing.

Thanks for the tip. CPU had been running crazy trying to keep up with the update service. The CPU temp has dropped from 43 degrees Celcius to 35 degrees.

Omg! Thanks you! I was stuck in windows update hell!

Thanks for the info. I made a .bat file to stop, and one to start with this info. Just run as administrator and it works 🙂

I hope the above stop up dates work as my computer is all bet useless

from cmd run
sc queryex wuauserv
take pidnum from result and replace xxx in
taskkill /PID xxx/F and run

This is a good short term (few days) fix but on Windows 10 home edition, update restarts itself after a few days. There is a regedit out there but it doesn’t work for Home edition. The WUSH tool also only works for a few days.

Would be great if there were a way to program this “sc config wuauserv start= disabled” command to re-run itself every 2 days. Does anyone know how to do this?

Just put the command in a batch file, then schedule a task launching it with highest priviledge “when the computer starts”. (^v^)

i am running cmd as administrator but also the following cmd net stop wuauserv is saying invalid what to do then

Erm… I disabled the command using the command prompt (admin), but the file Windows10Upgrade keeps appearing. Help me please!

I can’t stop windows 10 update using service stopping, when I connect to wifi ,service is auto enable how can I stop permanently

Is there any command just to show the windows update is on or off ?

How can I disable windows updates for all the computers on the network?

Unfortunately, Windows 10 Home does not allow users to turn off automatic updates. To do that, you would have to upgrade to the Pro version. Otherwise, you’re looking at a lot of punishing hours spent rolling back updates you didn’t want… I had this issue with an error related to a registry conflict that prioritizes RuntimeBroker and found that this was the case during my research into the cause for the ongoing rollbacks.

I have no access to stop and disable the services. Can anyone tell me what to do in this case?

Hello, I am searching across the internet to find a solution to fix the svchost.exe disk usage, and almost every one of them suggests to disable or turn manual the Windows Update Service. I already did that, but the svchost.exe thing keeps consuming my disk.

If you know how to fix this, please tell me.

Can always services >Windows update
right click, properties, Revoery, and change to no action for all 3… see if that may help.

Thanks, had to get around an invasive group policy to repair bitlocker bde protectors, this was the trick I needed to disable updates so my bitlocker tables could be repaired.
Brent, New Zealand

Источник

Manage device restarts after updates

Applies to

Looking for consumer information? See Windows Update: FAQ

You can use Group Policy settings, mobile device management (MDM) or Registry (not recommended) to configure when devices will restart after a Windows 10 update is installed. You can schedule update installation and set policies for restart, configure active hours for when restarts will not occur, or you can do both.

Schedule update installation

In Group Policy, within Configure Automatic Updates, you can configure a forced restart after a specified installation time.

To set the time, you need to go to Configure Automatic Updates, select option 4 — Auto download and schedule the install, and then enter a time in the Scheduled install time dropdown. Alternatively, you can specify that installation will occur during the automatic maintenance time (configured using Computer Configuration\Administrative Templates\Windows Components\Maintenance Scheduler).

Always automatically restart at the scheduled time forces a restart after the specified installation time and lets you configure a timer to warn a signed-in user that a restart is going to occur.

While not recommended, the same result can be achieved through Registry. Under HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU, set AuOptions to 4, set the install time with ScheduledInstallTime, enable AlwaysAutoRebootAtScheduledTime and specify the delay in minutes through AlwaysAutoRebootAtScheduledTimeMinutes. Similar to Group Policy, AlwaysAutoRebootAtScheduledTimeMinutes sets the timer to warn a signed-in user that a restart is going to occur.

For a detailed description of these registry keys, see Registry keys used to manage restart.

Delay automatic reboot

When Configure Automatic Updates is enabled in Group Policy, you can enable one of the following additional policies to delay an automatic reboot after update installation:

  • Turn off auto-restart for updates during active hours prevents automatic restart during active hours.
  • No auto-restart with logged on users for scheduled automatic updates installations prevents automatic restart when a user is signed in. If a user schedules the restart in the update notification, the device will restart at the time the user specifies even if a user is signed in at the time. This policy only applies when Configure Automatic Updates is set to option 4-Auto download and schedule the install.

When using Remote Desktop Protocol connections, only active RDP sessions are considered as logged on users. Devices that do not have locally logged on users, or active RDP sessions, will be restarted.

You can also use Registry, to prevent automatic restarts when a user is signed in. Under HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU, set AuOptions to 4 and enable NoAutoRebootWithLoggedOnUsers. As with Group Policy, if a user schedules the restart in the update notification, it will override this setting.

For a detailed description of these registry keys, see Registry keys used to manage restart.

Configure active hours

Active hours identify the period of time when you expect the device to be in use. Automatic restarts after an update will occur outside of the active hours.

By default, active hours are from 8 AM to 5 PM on PCs and from 5 AM to 11 PM on phones. Users can change the active hours manually.

Starting with Windows 10, version 1703, you can also specify the max active hours range. The specified range will be counted from the active hours start time.

Administrators can use multiple ways to set active hours for managed devices:

  • You can use Group Policy, as described in the procedure that follows.
  • You can use MDM, as described in Configuring active hours with MDM.
  • While not recommended, you can also configure active hours, as described in Configuring active hours through Registry.

Configuring active hours with Group Policy

To configure active hours using Group Policy, go to Computer Configuration\Administrative Templates\Windows Components\Windows Update and open the Turn off auto-restart for updates during active hours policy setting. When the policy is enabled, you can set the start and end times for active hours.

Configuring active hours with MDM

Configuring active hours through Registry

This method is not recommended, and should only be used when neither Group Policy or MDM are available. Any settings configured through Registry may conflict with any existing configuration that uses any of the methods mentioned above.

You should set a combination of the following registry values, in order to configure active hours. Under HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate use SetActiveHours to enable or disable active hours and ActiveHoursStart,ActiveHoursEnd to specify the range of active hours.

For a detailed description of these registry keys, see Registry keys used to manage restart.

To configure active hours manually on a single device, go to Settings > Update & security > Windows Update and select Change active hours.

Configuring active hours max range

With Windows 10, version 1703, administrators can specify the max active hours range users can set. This option gives you additional flexibility to leave some of the decision for active hours on the user’s side, while making sure you allow enough time for updating. The max range is calculated from active hours start time.

To configure active hours max range through Group Policy, go to Computer Configuration\Administrative Templates\Windows Components\Windows Update and open the Specify active hours range for auto-restarts.

To configure active hours max range through MDM, use Update/ActiveHoursMaxRange.

Limit restart delays

After an update is installed, Windows 10 attempts automatic restart outside of active hours. If the restart does not succeed after 7 days (by default), the user will see a notification that restart is required. You can use the Specify deadline before auto-restart for update installation policy to change the delay from 7 days to a number of days between 2 and 14.

Control restart notifications

In Windows 10, version 1703, we have added settings to control restart notifications for users.

Auto-restart notifications

Administrators can override the default behavior for the auto-restart required notification. By default, this notification will dismiss automatically.

To configure this behavior through Group Policy, go to Computer Configuration\Administrative Templates\Windows Components\Windows Update and select Configure auto-restart required notification for updates. When configured to 2 — User Action, a user that gets this notification must manually dismiss it.

You can also configure the period prior to an update that this notification will show up on. The default value is 15 minutes.

To change it through Group Policy, select Configure auto-restart-reminder notifications for updates under Computer Configuration\Administrative Templates\Windows Components\Windows Update and select the period in minutes.

In some cases, you don’t need a notification to show up.

To do so through Group Policy, go to Computer Configuration\Administrative Templates\Windows Components\Windows Update and select Turn off auto-restart notifications for update installations.

Scheduled auto-restart warnings

Since users are not able to postpone a scheduled restart once the deadline has been reached, you can configure a warning reminder prior to the scheduled restart. You can also configure a warning prior to the restart, to notify users once the restart is imminent and allow them to save their work.

To configure both through Group Policy, find Configure auto-restart warning notifications schedule for updates under Computer Configuration\Administrative Templates\Windows Components\Windows Update. The warning reminder can be configured by Reminder (hours) and the warning prior to an imminent auto-restart can be configured by Warning (mins).

In MDM, the warning reminder is configured using Update/ScheduleRestartWarning and the auto-restart imminent warning is configured using Update/ScheduleImminentRestartWarning.

Engaged restart

Engaged restart is the period of time when users are required to schedule a restart. Initially, Windows will auto-restart outside of working hours. Once the set period ends (7 days by default), Windows transitions to user scheduled restarts.

The following settings can be adjusted for engaged restart:

  • Period of time before auto-restart transitions to engaged restart.
  • The number of days that users can snooze engaged restart reminder notifications.
  • The number of days before a pending restart automatically executes outside of working hours.

In Group Policy, go to Computer Configuration\Administrative Templates\Windows Components\Windows Update and pick Specify Engaged restart transition and notification schedule for updates.

Group Policy settings for restart

In the Group Policy editor, you will see a number of policy settings that pertain to restart behavior in Computer Configuration\Administrative Templates\Windows Components\Windows Update. The following table shows which policies apply to Windows 10.

Policy Applies to Windows 10 Notes
Turn off auto-restart for updates during active hours Use this policy to configure active hours, during which the device will not be restarted. This policy has no effect if the No auto-restart with logged on users for scheduled automatic updates installations or Always automatically restart at the scheduled time policies are enabled.
Always automatically restart at the scheduled time Use this policy to configure a restart timer (between 15 and 180 minutes) that will start immediately after Windows Update installs important updates. This policy has no effect if the No auto-restart with logged on users for scheduled automatic updates installations policy is enabled.
Specify deadline before auto-restart for update installation Use this policy to specify how many days (between 2 and 14) an automatic restart can be delayed. This policy has no effect if the No auto-restart with logged on users for scheduled automatic updates installations or Always automatically restart at the scheduled time policies are enabled.
No auto-restart with logged on users for scheduled automatic updates installations Use this policy to prevent automatic restart when a user is logged on. This policy applies only when the Configure Automatic Updates policy is configured to perform scheduled installations of updates.
There is no equivalent MDM policy setting for Windows 10 Mobile.
Re-prompt for restart with scheduled installations
Delay Restart for scheduled installations
Reschedule Automatic Updates scheduled installations

You can only choose one path for restart behavior. If you set conflicting restart policies, the actual restart behavior may not be what you expected. When using RDP, only active RDP sessions are considered as logged on users.

Registry keys used to manage restart

The following tables list registry values that correspond to the Group Policy settings for controlling restarts after updates in Windows 10.

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate

Registry key Key type Value
ActiveHoursEnd REG_DWORD 0-23: set active hours to end at a specific hour starts with 12 AM (0) and ends with 11 PM (23)
ActiveHoursStart REG_DWORD 0-23: set active hours to start at a specific hour starts with 12 AM (0) and ends with 11 PM (23)
SetActiveHours REG_DWORD 0: disable automatic restart after updates outside of active hours 1: enable automatic restart after updates outside of active hours

HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU

Registry key Key type Value
AlwaysAutoRebootAtScheduledTime REG_DWORD 0: disable automatic reboot after update installation at scheduled time 1: enable automatic reboot after update installation at ascheduled time
AlwaysAutoRebootAtScheduledTimeMinutes REG_DWORD 15-180: set automatic reboot to occur after given minutes
AUOptions REG_DWORD 2: notify for download and notify for installation of updates 3: automatically download and notify for installation of updates 4: Automatically download and schedule installation of updates 5: allow the local admin to configure these settings Note: To configure restart behavior, set this value to 4
NoAutoRebootWithLoggedOnUsers REG_DWORD 0: disable do not reboot if users are logged on 1: do not reboot after an update installation if a user is logged on Note: If disabled : Automatic Updates will notify the user that the computer will automatically restart in 5 minutes to complete the installation
ScheduledInstallTime REG_DWORD 0-23: schedule update installation time to a specific hour starts with 12 AM (0) and ends with 11 PM (23)

There are 3 different registry combinations for controlling restart behavior:

  • To set active hours, SetActiveHours should be 1, while ActiveHoursStart and ActiveHoursEnd should define the time range.
  • To schedule a specific installation and reboot time, AUOptions should be 4, ScheduledInstallTime should specify the installation time, AlwaysAutoRebootAtScheduledTime set to 1 and AlwaysAutoRebootAtScheduledTimeMinutes should specify number of minutes to wait before rebooting.
  • To delay rebooting if a user is logged on, AUOptions should be 4, while NoAutoRebootWithLoggedOnUsers is set to 1.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

  • Restart windows and run sfc again
  • Restart spooler windows 7
  • Restart in safe mode windows 10
  • Resource not owned windows 10
  • Resize windows partition windows 10