Imposta costo: valore del Registro di sistema CostComputerHKLM\Software\Policies\Microsoft\Windows\Wireless\NetCost
- ID criterio
- SetCost
- Ambito
- Configurazione computer
- Supportato in
- Almeno Windows Server 2012, Windows 8 o Windows RT
- Origine
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
- Categoria
- Rete › Servizio WLAN › Costo supporti WLAN
Registro
Cost
REG_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\Wireless\NetCost Chiave corrente
- Valore abilitato
- Dipende dal valore dell'opzione
- Elemento
- Selezionare un valore di costo della connessione WLAN da impostare:
| Voce | Valore memorizzato |
|---|---|
| Senza restrizioni | 1 |
| Fisso | 2 |
| Variabile | 3 |
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Wireless\NetCost] ; Opzioni (usarne solo una) ; Senza restrizioni "Cost"=dword:00000001 ; Fisso "Cost"=dword:00000002 ; Variabile "Cost"=dword:00000003
CMD
:: Opzioni (usarne solo una) :: Senza restrizioni reg add "HKLM\Software\Policies\Microsoft\Windows\Wireless\NetCost" /v "Cost" /t REG_DWORD /d 1 /f :: Fisso reg add "HKLM\Software\Policies\Microsoft\Windows\Wireless\NetCost" /v "Cost" /t REG_DWORD /d 2 /f :: Variabile reg add "HKLM\Software\Policies\Microsoft\Windows\Wireless\NetCost" /v "Cost" /t REG_DWORD /d 3 /f
PowerShell
# Comune: crea la chiave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Wireless\NetCost' -Force | Out-Null # Opzioni (usarne solo una) # Senza restrizioni New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Wireless\NetCost' -Name 'Cost' -PropertyType DWord -Value 1 -Force | Out-Null # Fisso New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Wireless\NetCost' -Name 'Cost' -PropertyType DWord -Value 2 -Force | Out-Null # Variabile New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Wireless\NetCost' -Name 'Cost' -PropertyType DWord -Value 3 -Force | Out-Null