KeyRoutines
TriggerFreetrigger.network.wifi

Run a routine when you join or leave a Wi-Fi network

Wi-Fi network joined or left starts a routine when the PC connects to or leaves a Wi-Fi network. It turns a laptop into something that sets itself up for wherever you are.

How it works

  • Choose joins or leaves, and type the network name exactly as Windows shows it, or leave it empty for any Wi-Fi.
  • Since Windows 11 24H2, Windows only shares Wi-Fi names with apps allowed to use location; until you allow it, a named trigger shows Waiting with the fix instead of silently never firing.
  • Leaving one network is reported before joining the next.
  • The routine gets the change and the network details.

Routines that use it

Arrive at the office

When you join the office Wi-Fi, Open app starts Teams and Apply layout arranges your windows.

Home again

When you join your home Wi-Fi, Set default audio device switches to your desk speakers.

Public Wi-Fi pause

When you join a public Wi-Fi, Turn routine on or off pauses the routine that syncs files in the background, and leaving it turns that routine back on.

Settings

SettingWhat it does
OnFire when the PC joins or leaves the network.
NetworkThe Wi-Fi network's name, exactly as Windows shows it. Empty: any Wi-Fi network. Windows 11 shows desktop apps the name only when location is on for them.

Good to know

  • Named networks need location turned on for KeyRoutines in Windows 11.

Questions

Can Windows run something when I connect to my home Wi-Fi?
Yes, with KeyRoutines. Use Wi-Fi network joined or left, type your home network's name and set it to joins.
Why does my Wi-Fi trigger say Waiting?
Windows hides Wi-Fi names from apps without location permission. Allow location for KeyRoutines in Windows' privacy settings and the trigger starts working.

Pairs well with

Build this routine in KeyRoutines

Free from the Microsoft Store for Windows 11 and 10. Pro is a one-time upgrade.