Re-enable DHCP on an Adapter with PowerShell

Return an adapter to automatic IP assignment after using a manual static address.

WindowsnetworkdhcppowershellLow risk
Run `Set-NetIPInterface -InterfaceAlias "Ethernet" -Dhcp Enabled` as admin to put the adapter back on DHCP.

01Command

Command
$ Set-NetIPInterface -InterfaceAlias "Ethernet" -Dhcp Enabled

02What it does

If a static IP experiment left the adapter misconfigured, flipping the interface's DHCP flag back to Enabled makes Windows lease an address, gateway, and DNS from the router again. The change applies immediately; if the adapter doesn't reconnect, run ipconfig /renew afterwards. Verify the result with Get-NetIPAddress -AddressFamily IPv4.

03Risk

RiskLow risk
RequirementsAdministrator PowerShell; built-in NetTCPIP module on Windows 8.1/10/11.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • NetTCPIP module reference
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Module reference lists Set-NetIPInterface among the TCP/IP configuration cmdlets.
  • Set-NetIPInterface (NetTCPIP)
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Documents the -Dhcp parameter with Enabled/Disabled values and -InterfaceAlias for selecting the adapter.

Last verified: 2026-09-19 · Category: Network

06Related solutions