Seleziona un metodo per limitare la selezione Peer: valore del Registro di sistema DORestrictPeerSelectionByComputerHKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization
- ID criterio
- RestrictPeerSelectionBy
- Ambito
- Configurazione computer
- Supportato in
- Almeno Windows Server 2016 o Windows 10
- Origine
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
- Categoria
- Componenti di Windows › Ottimizzazione recapito
Registro
DORestrictPeerSelectionBy
REG_DWORDComputerHKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization Chiave corrente
- Valore abilitato
- Dipende dal valore dell'opzione
- Elemento
- Limita la selezione peer per:
| Voce | Valore memorizzato |
|---|---|
| Nessuno | 0 |
| Subnet mask | 1 |
| Individuazione locale (DNS-SD) | 2 |
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization] ; Opzioni (usarne solo una) ; Nessuno "DORestrictPeerSelectionBy"=dword:00000000 ; Subnet mask "DORestrictPeerSelectionBy"=dword:00000001 ; Individuazione locale (DNS-SD) "DORestrictPeerSelectionBy"=dword:00000002
CMD
:: Opzioni (usarne solo una) :: Nessuno reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DORestrictPeerSelectionBy" /t REG_DWORD /d 0 /f :: Subnet mask reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DORestrictPeerSelectionBy" /t REG_DWORD /d 1 /f :: Individuazione locale (DNS-SD) reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DORestrictPeerSelectionBy" /t REG_DWORD /d 2 /f
PowerShell
# Comune: crea la chiave New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Force | Out-Null # Opzioni (usarne solo una) # Nessuno New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DORestrictPeerSelectionBy' -PropertyType DWord -Value 0 -Force | Out-Null # Subnet mask New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DORestrictPeerSelectionBy' -PropertyType DWord -Value 1 -Force | Out-Null # Individuazione locale (DNS-SD) New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DORestrictPeerSelectionBy' -PropertyType DWord -Value 2 -Force | Out-Null