
I got tired of clicking through much Windows menus to change network settings, so I built a CLI tool
Every day I switch between my home network (DHCP) and office network (static IP, custom DNS, gateway). That means opening Control Panel, finding the adapter, properties, IPv4, properties again, typing everything manually. So I built netsnap — a small CLI tool that stores your network configs as named profiles and applies them in one command: netsnap apply work netsnap apply home netsnap apply plc_station It uses WMI to read current adapter state and netsh to apply settings. No dependencies except the wmi package. You can also save your current settings as a profile: netsnap save work --adapter "Intel(R) Wi-Fi 6 AX201 160MHz" GitHub: github.com/heavenyoung1/netsnap Would love feedback — especially if anyone tests it on Windows 10 or older Python versions.
Continue reading on Dev.to
Opens in a new tab




