Чтобы на компьютере Windows применились новые настройки локальной или доменной групповой политики (GPO), служба Group Policy Client (
gpsvc
) должна перечитать настройки политик и применить изменения. Настройки групповых политик в Windows обновляются при загрузке компьютера, при входе пользователя, и автоматически в фоновом режиме (в течении от 90 до 120 минут). В некоторых случаях администратору нужно, чтобы новые настройки политики применились немедленно, не дожидаясь указанных выше событий.
Содержание:
- Автоматическое применение настроек групповых политик в Windows
- Принудительное обновление групповых политик на компьютере Windows
- Обновить групповые политики на удаленных компьютерах
Автоматическое применение настроек групповых политик в Windows
Выше мы указали, когда настройки GPO автоматически применяются на клиенте:
- Настройки групповых политик, заданные в разделе секции Computer Configuration применяются при загрузке Windows.
- Настройки GPO из секции User Configuration применяются при входе пользователя.
- Фоновое обновление групповых политик выполняется автоматическая раз в 90 минут + случайное смещение времени (offset) в интервале от 0 до 30 минут (рандомный интервал позволяет уменьшить нагрузку на DC одновременным запросами от клиентов). Это означает, что новые политики гарантировано применятся на клиентах в интервале 90 – 120 минут после обновления файлов GPO на контроллере домена.
Контроллеры домена по умолчанию обновляют настройки GPO раз в 5 минут.
Настройки фонового обновления политик можно изменить с помощью параметра следующих параметров GPO в разделе Computer Configuration -> Administrative Templates -> System -> Group Policy:
- Set Group Policy refresh interval for computers — здесь можно изменить частоту обновления настроек GPO со стандартных 90 минут и значение смещения.
- Turn off background refresh of group policy — позволяет полностью отключить фоновое обновление настроек политик
Но в большинстве случаев трогать эти настройки не рекомендуется.
Принудительное обновление групповых политик на компьютере Windows
Для принудительного, немедленного обновления (применения) настроек групповых политик на компьютере Windows используется утилита gpupdate.
Большинство администраторов не задумываясь используют для обновления политик команду:
gpupdate /force
.
Эта команда заставляет компьютер принудительно перечитать все политики с контроллера домена и заново применить все параметры. Т.е. ключ force указывает клиенту что нужно обратиться к контроллеру домена и заново получает файлы ВСЕХ нацеленных на него GPO. Это вызывает повышенную нагрузку на сеть и контроллер домена.
Простая команда
gpudate
без параметров применяет только новые/измененные параметры GPO.
Updating policy... Computer Policy update has completed successfully. User Policy update has completed successfully.
Можно отдельно обновить параметры GPO из пользовательской секции
gpupdate /target:user
или только политики компьютера:
gpupdate /target:computer /force
Если некоторые политики нельзя обновить в фоновом режиме (обычно это клиентские расширения GPO, которые обрабатываются при входе пользователя), gpudate может заверишь сеанс текущего пользователя (logoff):
gpupdate /target:user /logoff
Или выполнить перезагрузку компьютера (некоторые политики, такие как установка программ в GPO, или логон скрипты применяются только при загрузке Windows):
gpupdate /Boot
Обновить групповые политики на удаленных компьютерах
Есть несколько способов для принудительного обновления настроек GPO на удаленных компьютерах Windows.
В самом простом случае вы просто можете выполнить команду gpupdate на удаленном компьютере:
- спомощьюутилиты PSexec:
PsExec \\PC1 gpupdate - через PowerShell Remoting (WinRM):
Invoke-Command -computername PC1 -Scriptblock {gpupdate /force}
Если нужно массово обновить групповые политики на множестве компьютеров, воспользуйтесь консолью Group Policy Management Console (
GPMC.msc
).
В Windows 10 и 11 для использования консоли придется установить компонент RSAT:
Add-WindowsCapability -Online -Name Rsat.GroupPolicy.Management.Tools~~~~0.0.1.0
Чтобы обновить политики на компьютерах, щёлкните в консоли GPMC по нужному Organizational Unit (OU) и выберите Group Policy Update.
Консоль поочерёдно подключится к каждому компьютеру в OU, и вы получите результат со статусом обновления политик (Succeeded/Failed).
Утилита создает на компьютерах задание планировщика с командой
GPUpdate.exe /force
для каждого залогиненого пользователя. Задание запускается через случайный промежуток времени (до 10 минут) для уменьшения нагрузки на сеть.
На клиентах в файерволе Windows Defender должны быть разрешены следующие правила:
- Remote Scheduled Tasks Management (RPC)
- Remote Scheduled Tasks Management (RPC-ERMAP)
- Windows Management Instrumentation (WMI-IN)
Если компьютер выключен, или доступ к нему блокируется файерволом, для него вернется ошибка ‘The remote procedure call was cancelled‘.
Также для удаленного обновления политики можно использовать PowerShell командлет Invoke-GPUpdate, который входит в модуль управления GPO. Например, для обновления политик пользователя на удаленном компьютере, выполните:
Invoke-GPUpdate -Computer PC01 -Target "User"
Вы можете задать случайную задержку обновления GPO с помощью параметра RandomDelayInMinutes. Таким образом вы можете уменьшить нагрузку на сеть, если одновременно обновляете политики на множестве компьютеров. Для немедленного применения политик используется параметр
-RandomDelayInMinutes 0
.
В сочетании с командлетом Get-ADComputer вы можете принудительно обновить настройки групповых политик на всех компьютерах (исключая неактивные) в определенном OU:
Get-ADComputer –filter {enabled -eq "true"} -Searchbase "ou=Computes,OU=SPB,dc=winitpro,dc=com" | foreach{ Invoke-GPUpdate –computer $_.name –RandomDelayInMinutes 10 -force}
При удаленном выполнении командлета Invoke-GPUpdate или обновления GPO через консоль GPMC на мониторе пользователя может на короткое время появиться черное окно консоли с запущенной командой
gpupdate
.
Download Windows Speedup Tool to fix errors and make PC run faster
If you have Windows 11/10 Pro or Enterprise edition, you may see the “Some settings are managed by your organization” message on the Windows Update page. Windows displays this message when your organization has configured some Windows Update Policies. If you have a personal computer with Windows 11/10 Pro or Enterprise edition, you can also configure Windows Update Policies. In this article, we will show you how to view the Configured Windows Update Policies applied to your computer.
The following instructions will show you how to view Configured Windows Update Policies applied to your computer. Because of a change in UI, the steps to view configured Windows Update Policies are different for Windows 10 and Windows 11 users.
Windows 11
Windows 11 users have to follow the following steps to view configured update policies on their computers:
- Open Windows 11 Settings.
- Select Windows Update from the left side.
- Now, click Advanced options.
- Scroll down and then click Configured update policies.
After that, Windows 11 will show you all the update policies configured on your system.
Windows 10
If you have Windows 10, you can view the configured Windows Update Policies by following the steps written below:
- Open Windows 10 Settings.
- Select Update & security.
- Now, select Windows Update from the left side.
- Click on the “View configured update policies” link under the “Some settings are managed by your organization” message on the Windows Update page.
After performing the above steps, you will see all the update policies configured on your Windows 10 device.
How to change Configured Windows Update Policies applied to your computer
We have seen how to view configured Windows Update Policies applied to your computer. Now, let’s see if you want to change these Windows Update Policies, how can you do that? You can change the configured Windows Update Policies by using the Local Group Policy Editor. The Local Group Policy Editor is not available on Windows 11/10 Home edition.
Do note that you need an administrative account to change the configured Windows Update Policies. Go through the following instructions to change configured Windows Update Policies applied to your computer:
- Open the Run command box by pressing the Win + R keys.
- Type
gpedit.mscand click OK. This will open the Local Group Policy Editor. - Now, expand Computer Configuration.
- Go to “Administrative Templates > Windows Components > Windows Update.”
You will see the following four types of Settings under the Windows Update category and on the right pane:
- Legacy Policies
- Manage end user experience
- Manage updates offered from Windows Server Update Service
- Manage updates offered from Windows update
Double-click on any of the above Settings to view Windows Update Policies. You can view the status of all the updated policies. Let’s see what different statuses mean:
- Not configured: This status means that the particular update policy is not configured on your computer.
- Enabled: This status shows that the particular update policy is configured on your computer.
- Disabled: This status means that the particular update policy is disabled on your computer.
To configure a Windows Update policy or change the configured update policy, double-click on it and change its settings accordingly.
Related read: Your organization has set some policies to manage updates.
How do I change Windows Update Policies?
To change Windows Update in Group Policy, open the Local Group Policy Editor and go to “Computer Configuration > Administrative Templates > Windows Components > Windows Update.” Now, double-click on any of the settings on the right side to view and change the Windows Update Policies.
Read: Limit Bandwidth and set the Time when Windows Updates can download
How do I remove a configured update policy?
You can remove a configured update policy via the Local Group Policy Editor. But for this, you need to log in to Windows using an administrative account. Open the Local Group Policy Editor and go to “Computer Configuration > Administrative Templates > Windows Components > Windows Update.” Now, open a configured Windows Update policy and select Disabled.
Read next: Recommended Windows Update policies Admins should be using.
Anand Khanse is the Admin of TheWindowsClub.com, a 10-year Microsoft MVP (2006-16) & a Windows Insider MVP (2016-2022). Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.
Важно! В этой статье будет рассказано о том, как отключить в операционной системе Windows 10 функцию автоматического обновления. Если вам необходимо отключить службу апдейтов полностью, обратитесь за помощью к другой нашей статье, перейдя по представленной ниже ссылке.
Подробнее: Как навсегда запретить обновление Windows 10
Чтобы отключить обновления в Windows 10, необходимо открыть «Редактор локальных групповых политик», перейти в соответствующий раздел и изменить значение параметра, отвечающего за эту функцию.
- Откройте «Редактор локальных групповых политик» любым доступным способом. Например, это можно сделать посредством окна «Выполнить». Вызовите его с помощью горячих клавиш Win + R, а затем введите команду
gpedit.mscи нажмите по кнопке «ОК». - Воспользовавшись навигационной панелью в левой части окна, перейдите по представленному ниже пути.
«Локальный компьютер» → «Административные шаблоны» → «Компоненты Windows» → «Центр обновления Windows»Попав в целевую директорию, в основной области найдите параметр с названием «Настройка автоматического обновления» и вызовите его окно свойств. Для этого достаточно кликнуть дважды левой кнопкой мыши по имени файла.
- В свойствах переведите переключатель, расположенный в верхнем левом углу окна, в положение «Отключено». Затем кликните по кнопке «ОК», чтобы применить внесенные изменения.
После проделанных действий операционная система перестанет обновляться в автоматическом режиме. Для этого вам потребуется вручную проверять выход новых апдейтов и инициализировать их инсталляцию. У нас на сайте есть отделительная статья, в которой наглядно демонстрируется то, как это делать.
Подробнее: Установка обновлений Windows 10
Наша группа в TelegramПолезные советы и помощь
Imagine a situation when your system administrator or a 3rd party software or a malware disabled/restricted Windows Update settings page. In such situations, you won’t be able to change Windows Update download and installation related settings because all available options would be grayed out or completely removed.
Same thing happened with Windows 10 operating system. Microsoft has disabled customization of Windows Update settings in Windows 10 by removing all options related to Windows Update downloading and installation. They did this because they wanted Windows 10 to automatically download and install all updates and hotfixes. Microsoft didn’t want Windows 10 users to modify Windows Update settings, the company wanted to prevent them from disabling Automatic Updates in Windows 10.
In Windows 10, you can’t change settings of automatically download and install Windows updates in its settings page. Now Windows 10 will automatically download and install new updates without your knowledge and you’ll have no idea when and which updates Windows were installed. If you open Windows Update settings page in Windows 10, you get following screen:
You can see in above screenshot, Windows 10 is showing that available updates will be downloaded and installed automatically.
If you are on a limited bandwidth or slow Internet connection, you may want to change the settings to notify you before downloading and installing the updates so that you can select which updates do you want to install and when.
If you are using Windows 10 and want to be able to change Windows Update settings, this guide will help you.
Today in this article, we are going to tell you methods to remove this restriction and to become able to modify Windows Update download and install related settings. After following these methods you’ll be able to force Windows 10 to notify and ask you before downloading new updates as shown in following screenshot:
You can see in the above screenshot, Windows Update is showing that you’ll be asked to download available updates which means it’ll not download new updates automatically. You’ll be notified about available updates first. Once you click on Download button, Windows will start downloading available updates otherwise not.
Proof: Forcing Windows 10 to Always Notify Before Downloading Updates
Good news is that we can remove this restriction from Windows Update settings using following 2 methods:
- METHOD 1: Using Group Policy Editor (gpedit.msc)
- METHOD 2: Using Registry Editor (regedit.exe)
So without wasting time lets start the tutorial:
METHOD 1: Using Group Policy Editor (gpedit.msc)
1. Press WIN+R keys together to launch RUN dialog box. Now type gpedit.msc and press Enter. It’ll open Group Policy Editor.
2. Now go to:
Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update
3. In right-side pane, look for “Configure Automatic Updates” option.
4. The option would be set to Not Configured. Double-click on it and set it to Enabled.
Now select any of the given options according to your requirements:
- 2 – Notify for download and notify for install
- 3 – Auto download and notify for install
- 4 – Auto download and schedule the install
- 5 – Allow local admin to choose setting
PS: Select the last option “5 – Allow local admin to choose setting” to be able to choose options in drop-down box on Windows Update settings page.
That’s it. Apply changes and open Windows Update settings page. Now you’ll be able to change desired settings.
IMPORTANT NOTE:
After applying changes in Group Policy Editor, open Windows Update page in Settings app. Now click on “Check for updates” button to force Windows 10 to apply your changes. After that the new settings will be applied successfully.
METHOD 2: Using Registry Editor (regedit.exe)
If you are using Windows 10 Home edition, you’ll not be able to run gpedit.msc command because this edition doesn’t come with Group Policy Editor.
If you can’t use or don’t want to use Group Policy Editor, you can take help of Registry Editor for the same task. Just follow these simple steps:
1. Press WIN+R keys together to launch RUN dialog box. Now type regedit and press Enter. It’ll open Registry Editor.
2. Now go to following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
3. Create a new key under Windows key and set its name as WindowsUpdate
4. Create another new key under WindowsUpdate key and set its name as AU
So the final key path would be:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
5. Now select AU key and in right-side pane create a new DWORD AUOptions and set its value to any of following according to your requirements:
- 2 (To notify for download and notify for install)
- 3 (To auto download and notify for install)
- 4 (To auto download and schedule the install)
- 5 (To allow local admin to choose setting)
PS: Set the value of AUOptions to 5 to be able to choose options in drop-down box on Windows Update settings page.
NOTE: If you are using 64-bit edition of Windows, you’ll also need to follow steps 3-5 for following Registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows
6. Close Registry Editor and open Windows Update settings page. Now you’ll be able to change desired settings.
PS: If you are not familiar with Registry editing tasks, we are also providing ready-made Registry script to do the task automatically. Download following ZIP file, extract it and run .REG file. It’ll ask for confirmation, accept it. Restart your computer and Windows will always notify you before downloading new updates:
IMPORTANT NOTE:
After applying changes in Registry Editor, restart your computer. After reboot, open Windows Update page in Settings app. Now click on “Check for updates” button to force Windows 10 to apply your changes. After that the new settings will be applied successfully.
Further Read:
Fixing Windows 10 Automatic Updates Install Problem
[Windows 10 Tip] Disable Automatic Driver Updates Installation via Windows Update
You are here: Home » Troubleshooting Guides » [Windows 10 Tip] Change Windows Update Download and Installation Related Settings
В отличие от своих предшественников, Windows 10 не позволяет вам легко отключить автоматическое обновление Windows. Классическая панель обновления Windows, которая позволяет пользователям отключить автоматическое обновление, было исключено из Windows 10, и нет никакой возможности в настройках системы отключить автоматическое обновление.
Отключить автоматическое обновление в Windows 10 с помощью реестра.
Хорошей новостью является то, что можно изменить настройки по умолчанию Windows Update, с помощью редактирования реестра. Кроме того, все настройки обновления Windows которые есть в групповой политике имеются также в реестре.
Есть способ, чтобы полностью отключить автоматическое обновление (не проверять наличие обновлений), в Windows 10 с помощью реестра.
В этом руководстве, мы увидим, как отключить или настроить автоматическое обновление Windows, отредактировав реестр.
- Способ 1 — отключить автоматическое обновление
- Способ 2 — расширенные настройки -настроить автоматическое обновление
Способ 1 из 2 — Полностью отключить автоматическое обновление.
Важно: Мы рекомендуем Вам создать точку восстановления системы перед редактированием реестра в случае, если что-то пойдет не так!
Шаг 1: Win+R в строке наберем Regedit, нажимаем клавишу Enter
Шаг 2: В редакторе реестра перейдите к следующему разделу:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
Шаг 3: Кликните правой кнопкой мыши на разделе Windows (как показано на рисунке), выберете Создать/ Раздел.
Введите имя как WindowsUpdate (без пробела). Обратите внимание, что после создания нового раздела, нажмите правой кнопкой мыши на нем, а затем выберите пункт — Переименовать, чтобы переименовать его в WindowsUpdate.
Шаг 4: Теперь, когда вы создали раздел WindowsUpdate, кликните правой кнопкой мыши на разделе WindowsUpdate, и выберите Создать \ Раздел и установите его имя как AU.
Шаг 5: С правой стороны нажмите на раздел AU, правой кнопкой мыши, в контекстном меню выберите Создать, Параметр DWORD (32 бита), с именем NoAutoUpdate.
Шаг 6: И, наконец, дважды кликните на NoAutoUpdate, и установите его значение: 1
0 — включить автоматическое обновление
1 — отключить автоматические обновления
При выключении автоматического обновления, Windows никогда не будет проверять наличие обновлений. Если вы перейдете в настройки Windows, вы увидите Никогда не проверять наличие обновлений.
Способ 2 из 2 — Расширенные настройки — обновления Windows 10.
Если вы не хотите, полностью отключить автоматическое обновление, но хотите контролировать, как будут установлены обновления, вы можете сделать это с помощью приведённых ниже шагов.
Шаг 1: Следуйте инструкциям указанным в 1 способе для создания WindowsUpdate и AU разделов по следующему пути:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
Шаг 2: Выберите раздел AU, в правой части редактора реестра, и создайте в нем новый параметр DWORD (32 бита) и назовите его AUOptions, установите для него одно из следующих значений:
0 – Уведомление о загрузке и установке
3 – Автоматическая загрузка и уведомление об установке
4 — Автоматическая загрузка и установка по расписанию
5 — Разрешить локальному администратору выбирать параметры
Если вы хотите, чтобы Windows 10 всегда уведомляла вас о доступном обновлении, необходимо установить значение — 2.
ПРИМЕЧАНИЕ: Если вы используете 64-разрядную версию Windows, вам также необходимо выполнить эти шаги для следующего раздела реестра:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows
Если вам лень возится с реестром Windows 10, я подготовил готовые reg файлы NoAutoUpdate.zip и AUOptions.zip
