Specify source service for specific classes of Windows Updates
Spécifier le service source pour des classes spécifiques de mises à jour Windows
Explanation
When this policy is enabled, devices will receive Windows updates for the classes listed from the specified update source: either Windows Update or Windows Server Update Service.
Note: To receive any updates from the Windows Server Update Service you must have properly configured an intranet Microsoft update service location via the “Specify intranet Microsoft update service location” policy.
If this policy is not configured or is disabled, the device will continue to detect updates per your other policy configurations.
Note: If you are using “Do not allow deferral policies to cause scans against Windows Update” currently to ensure devices only scan against your specified server, we recommend configuring this policy instead or in addition to such.
Lorsque cette stratégie est activée, les appareils reçoivent les mises à jour Windows pour les classes répertoriées à partir de la source de mise à jour spécifiée : Windows Update ou le service de mise à jour Windows Server.
Remarque : pour recevoir des mises à jour à partir du service de mise à jour de Windows Server, vous devez avoir configuré correctement un emplacement intranet du service de mise à jour Microsoft à l’aide de la stratégie « Spécifier l’emplacement intranet du service de mise à jour Microsoft ».
Si cette stratégie n’est pas configurée ou si elle est désactivée, l’appareil continue de détecter les mises à jour par vos autres configurations de stratégie.
Remarque : Si vous utilisez « Ne pas autoriser les stratégies de report pour créer des analyses sur Windows Update » pour vérifier que les appareils n’effectuent une analyse que sur votre serveur spécifié, nous vous recommandons de configurer cette stratégie à la place ou en supplément.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate- Value name
- not defined in the ADMX
| State | Value written | ||||||
|---|---|---|---|---|---|---|---|
| Enabled |
| ||||||
| Disabled |
|
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: WindowsUpdate/UpdateClassPolicySource_Title
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'UseUpdateClassPolicySource' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Feature Updates
# Possible options:
# Windows Server Update Services = 1
# Windows Update = 0
Set-ItemProperty -Path $k -Name 'SetPolicyDrivenUpdateSourceForFeatureUpdates' -Value 1 -Type DWord
# Quality Updates
# Possible options:
# Windows Server Update Services = 1
# Windows Update = 0
Set-ItemProperty -Path $k -Name 'SetPolicyDrivenUpdateSourceForQualityUpdates' -Value 1 -Type DWord
# Driver Updates
# Possible options:
# Windows Server Update Services = 1
# Windows Update = 0
Set-ItemProperty -Path $k -Name 'SetPolicyDrivenUpdateSourceForDriverUpdates' -Value 1 -Type DWord
# Other Updates
# Possible options:
# Windows Server Update Services = 1
# Windows Update = 0
Set-ItemProperty -Path $k -Name 'SetPolicyDrivenUpdateSourceForOtherUpdates' -Value 1 -Type DWordDisable
# Disable: WindowsUpdate/UpdateClassPolicySource_Title
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'UseUpdateClassPolicySource' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsUpdate/UpdateClassPolicySource_Title
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU'
Remove-ItemProperty -Path $k -Name 'UseUpdateClassPolicySource' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate'
Remove-ItemProperty -Path $k -Name 'SetPolicyDrivenUpdateSourceForFeatureUpdates' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'SetPolicyDrivenUpdateSourceForQualityUpdates' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'SetPolicyDrivenUpdateSourceForDriverUpdates' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'SetPolicyDrivenUpdateSourceForOtherUpdates' -ErrorAction SilentlyContinueOptions (4)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Feature UpdatesMises à jour des fonctionnalitésCorpWUSetPolicyDrivenUpdateSourceForFeatureUpdates | Drop-down listenum | SetPolicyDrivenUpdateSourceForFeatureUpdates | REG_DWORD | Required · Default choice (UI): #0
| ||||||
| Quality UpdatesMises à jour qualitéCorpWUSetPolicyDrivenUpdateSourceForQualityUpdates | Drop-down listenum | SetPolicyDrivenUpdateSourceForQualityUpdates | REG_DWORD | Required · Default choice (UI): #0
| ||||||
| Driver UpdatesMises à jour du piloteCorpWUSetPolicyDrivenUpdateSourceForDriverUpdates | Drop-down listenum | SetPolicyDrivenUpdateSourceForDriverUpdates | REG_DWORD | Required · Default choice (UI): #0
| ||||||
| Other UpdatesAutres mises à jourCorpWUSetPolicyDrivenUpdateSourceForOtherUpdates | Drop-down listenum | SetPolicyDrivenUpdateSourceForOtherUpdates | REG_DWORD | Required · Default choice (UI): #0
|