Selecione um método para restringir a Seleção de Par: valor do Registro DORestrictPeerSelectionByComputadorHKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization
- ID da política
- RestrictPeerSelectionBy
- Escopo
- Configuração do Computador
- Compatível com
- Pelo menos Windows Server 2016, Windows 10
- Fonte
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
- Categoria
- Componentes do Windows › Otimização de Entrega
Registro
DORestrictPeerSelectionBy
REG_DWORDComputador- Valor habilitado
- Depende do valor da opção
- Elemento
- Restringir Seleção de Par Por:
| Item | Valor armazenado |
|---|---|
| Nenhum | 0 |
| Máscara de sub-rede | 1 |
| Descoberta local (DNS-SD) | 2 |
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization] ; Opções (use apenas uma) ; Nenhum "DORestrictPeerSelectionBy"=dword:00000000 ; Máscara de sub-rede "DORestrictPeerSelectionBy"=dword:00000001 ; Descoberta local (DNS-SD) "DORestrictPeerSelectionBy"=dword:00000002
CMD
:: Opções (use apenas uma) :: Nenhum reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DORestrictPeerSelectionBy" /t REG_DWORD /d 0 /f :: Máscara de sub-rede reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DORestrictPeerSelectionBy" /t REG_DWORD /d 1 /f :: Descoberta local (DNS-SD) reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DORestrictPeerSelectionBy" /t REG_DWORD /d 2 /f
PowerShell
# Comum: criar a chave New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Force | Out-Null # Opções (use apenas uma) # Nenhum New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DORestrictPeerSelectionBy' -PropertyType DWord -Value 0 -Force | Out-Null # Máscara de sub-rede New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DORestrictPeerSelectionBy' -PropertyType DWord -Value 1 -Force | Out-Null # Descoberta local (DNS-SD) New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DORestrictPeerSelectionBy' -PropertyType DWord -Value 2 -Force | Out-Null