When I troubleshoot my domain joined computer for internet access, why does the Static IP get removed?

TechQ 101 Reputation points
2023-03-07T15:18:54.5066667+00:00

I am using window server 2022 standard, I have added a computer to my domain, but when it lose internet and customer troubleshoot it, the static IP get changed that I assigned. How to deal with it?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
3,934 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
6,596 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,772 questions
Internet Information Services
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Reza-Ameri 14,796 Reputation points
    2023-03-07T21:06:41.6933333+00:00

    Sometimes set static IP would cause connection issue and that is why the troubleshooter will remove it and set it as automatic. This is a behavior by design, however you may file a report in the Feedback Hub app and request to add functionality to prevent it. It is recommended to setup environment to automatically get the IP and you may set static IP in the router's level. Other option is to use PowerShell to reassign the IP, for example you may use New-NetIPAddress , have a look at:

    https://learn.microsoft.com/en-us/powershell/module/nettcpip/new-netipaddress?view=windowsserver2022-ps