0

I would like my laptop to disable DHCP for only one WiFi network. I often hibernate the laptop, change locations, and wake it up.

One posting abuot settings that are specific to a WiFi network is at this post, assuming that an "adapter" is the same as a WiFi network. But I don't want to delve into PowerShell and event driven commands. It would be easier to manually ensure that DHCP is disabled on a specific network.

Another post here requires DHCP to fail (which it won't).

The above post also refers to a blog about writing VB script, but again, I'm wondering if a simpler way has arisen in the last 7 years?

user2153235
  • 1,543

1 Answers1

2

Unfortunately there is no way to do it simple because Windows has IP configuration for adapter (network card, interface), not for network. So you have to change the IP settings somehow.

If you have some coding experience you can easy handle the moment when a WiFi Network connection state changed (disconnected, connected, re-connected) and change the IP configuration dinamically. Its hard to code IP changing using Win32 API but you can easy call PowerShell script from your monitoring application (which is described in one of the answer you reffered to).