Set Cost: registry value CostComputerHKLM\Software\Policies\Microsoft\Windows\Wireless\NetCost
- Policy ID
- SetCost
- Scope
- Computer Configuration
- Supported on
- At least Windows Server 2012, Windows 8 or Windows RT
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Network › WLAN Service › WLAN Media Cost
Registry
Cost
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- Please select a wlan connection cost value to set:
| Item | Stored value |
|---|---|
| Unrestricted | 1 |
| Fixed | 2 |
| Variable | 3 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Wireless\NetCost] ; Options (use only one) ; Unrestricted "Cost"=dword:00000001 ; Fixed "Cost"=dword:00000002 ; Variable "Cost"=dword:00000003
CMD
:: Options (use only one) :: Unrestricted reg add "HKLM\Software\Policies\Microsoft\Windows\Wireless\NetCost" /v "Cost" /t REG_DWORD /d 1 /f :: Fixed reg add "HKLM\Software\Policies\Microsoft\Windows\Wireless\NetCost" /v "Cost" /t REG_DWORD /d 2 /f :: Variable reg add "HKLM\Software\Policies\Microsoft\Windows\Wireless\NetCost" /v "Cost" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Wireless\NetCost' -Force | Out-Null # Options (use only one) # Unrestricted New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Wireless\NetCost' -Name 'Cost' -PropertyType DWord -Value 1 -Force | Out-Null # Fixed New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Wireless\NetCost' -Name 'Cost' -PropertyType DWord -Value 2 -Force | Out-Null # Variable New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Wireless\NetCost' -Name 'Cost' -PropertyType DWord -Value 3 -Force | Out-Null