Danny Moran

SConfig Failed to Release DHCP Lease Error Code 83 Fix on Windows Server 2022 Core

Published September 01, 2021 by Danny Moran

Table of Contents
PAGE CONTENT

Introduction

There is currently a bug in Microsoft Windows Server 2022 Core edition when trying to use SConfig to configure network settings. After following the configuration wizard, you may get the following error relating to a failed DHCP release:

Setting NIC to static IP...
Failed to release DHCP lease.
Result code: 83
Method name: ReleaseDHCPLease

This problem is simple to fix if you follow the steps below.

How to fix this error

  1. In the SConfig window, select option 15 to Exit to command line (PowerShell)

  2. Run the following command to get the names of the network interfaces available.

    Get-NetAdapter
    
  3. Run the following command to remove the IP address on the specified network interface adapter.

    Remove-NetIPAddress -InterfaceAlias Ethernet -confirm:$False
    

    Note: Replace Ethernet with the adapter name returned in step 2.

  4. Run the following command to set the required IP address, subnet mask, and default gateway.

    Note: Replace Ethernet with the adapter name returned in step 2, replace 10.0.0.1 with the IP address, replace 24 with your subnet mask prefix, and replace 10.0.0.254 with your default gateway.

    New-NetIPAddress -InterfaceAlias Ethernet -IPAddress 10.0.0.1 -PrefixLength 24 -DefaultGateway 10.0.0.254
    
  5. Run the following command to set the DNS server(s) on the specified network interface adapter.

    Note: Replace Ethernet with the adapter name returned in step 2, replace 10.0.0.10 and 10.0.0.20 with your DNS servers.

    Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses ("10.0.0.10","10.0.0.20")
    

The network interface card will now have the required settings.