Kosten instellen: registerwaarde CostComputerHKLM\Software\Policies\Microsoft\Windows\Wireless\NetCost

Beleids-ID
SetCost
Bereik
Computerconfiguratie
Ondersteund op
Minimaal Windows Server 2012, Windows 8 of Windows RT
Bron
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versie 1.0)
Categorie
Netwerk › WLAN-service › WLAN-mediakosten

Register

Cost

REG_DWORDComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Selecteer een kostenwaarde voor een WLAN-verbinding:
Opties
ItemOpgeslagen waarde
Onbeperkt1
Vast2
Variabele3
Toepassen met .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Wireless\NetCost]

; Opties (gebruik er maar één)
; Onbeperkt
"Cost"=dword:00000001
; Vast
"Cost"=dword:00000002
; Variabele
"Cost"=dword:00000003
CMD
:: Opties (gebruik er maar één)

:: Onbeperkt
reg add "HKLM\Software\Policies\Microsoft\Windows\Wireless\NetCost" /v "Cost" /t REG_DWORD /d 1 /f
:: Vast
reg add "HKLM\Software\Policies\Microsoft\Windows\Wireless\NetCost" /v "Cost" /t REG_DWORD /d 2 /f
:: Variabele
reg add "HKLM\Software\Policies\Microsoft\Windows\Wireless\NetCost" /v "Cost" /t REG_DWORD /d 3 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Wireless\NetCost' -Force | Out-Null

# Opties (gebruik er maar één)
# Onbeperkt
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Wireless\NetCost' -Name 'Cost' -PropertyType DWord -Value 1 -Force | Out-Null
# Vast
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Wireless\NetCost' -Name 'Cost' -PropertyType DWord -Value 2 -Force | Out-Null
# Variabele
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Wireless\NetCost' -Name 'Cost' -PropertyType DWord -Value 3 -Force | Out-Null