Skip to content

Mark a Wi-Fi network as metered from the command line — via Microsoft Learn

Commandlow riskNeeds adminWindows 11Windows 10

The same as the Metered connection toggle in Settings, but scriptable and usable for a network you're not connected to right now. Metered networks make Windows and many apps hold back big downloads.

Takes effect right away

The easy way

  1. The easy way (current network): Settings → Network & internet → Wi-Fi → network properties → Metered connection on.

Command

Run in an administrator Command Prompt / Terminal window.

netsh wlan set profileparameter name="MyHotspot" cost=fixed

Undo

netsh wlan set profileparameter name="MyHotspot" cost=default
fixed means a metered network with a data limit; variable is metered with changing cost; default treats Wi-Fi as unmetered unless set otherwise.

Sources

Source reviewed
2026-11-02
Link checked
Not yet
Tested hands-on
Not by Oddbyte.Me

Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.

meteredwi-fidata capnetshhotspot

More in Networking

Flush the DNS cache — via Marc Abramowitz

Commandlow riskAdmin

If a website moved to a new server, or you changed DNS settings and some sites still won't load, your Mac may be holding on to old address lookups. Flushing the DNS cache makes it look them up fresh. It's a troubleshooting step, not a speed boost.

Run Apple's built-in internet speed test — via SS64

Commandlow risk

macOS has its own speed test in Terminal. Besides download and upload speed, it measures 'responsiveness' (round trips per minute while the line is busy), which explains why video calls stutter on a connection that looks fast.