How to Disable IP Autoconfiguration

If DHCP service is enabled and DHCP server is temporarily or permanently unavailable, TCP/IP assigns a class B IP address from to to the machine. This function in Windows is called “Automatic Private IP Addressing”.

If you want to use static IP addresses in the machine, you need to disable IP autoconfiguration. To disable;

1- Check in which interface autoconfiguration is on.

2- Check for index number of the interface with the command;

netsh interface ipv4 show inter

Our index is ‘2’ in this example.

3- Run the command below with changing the ‘2’ with your index number;

netsh interface ipv4 set interface 2 dadtransmits=0 store=persistent

4- Disable DHCP Client service

5- Reboot


  1. Thanks. Most helpful.

  2. The best. TYVM. Makes me wonder if Microsoft did an update to enable this recently…first Ive ran into it.

  3. thanks .. i was puzzled by this..

  4. Can this be made to work without disabling DHCP? I don’t need DCHP since using a static IP, but it also then disables the network location awareness that affects the windows firewall.

  5. It didn’t permanently disable it for me.
    It comes back.
    And while it connects to the router it won’t connect to the internet.

  6. Still says “Autoconfiguration Enabled = Yes”. I am on static IP.

  7. Without disabling DHCP mine still gets an auto ip even though dadtransmits=0. However, creating DWORD “IPAutoconfigurationEnabled” with value 0 at HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\ works for me, although ipconfig /all shows “Autoconfiguration enabled: Yes” the adapter does NOT receive an auto ip even with DHCP enabled. You can get the adapter guid using powershell: `Get-CimInstance -ClassName Win32_NetworkAdapter | Where-Object Name -eq ‘{DESCRIPTION GOES HERE}’ | Select-Object GUID`, replace {DESCRIPTION GOES HERE} with the “Description” listed from ipconfig.

Leave a Reply