Windows Server / DNS, DHCP & Server Networking
Diagnose clients receiving the wrong gateway or DNS options
A correct leased address can still leave a server unreachable when DHCP options are wrong at the applicable scope or policy.
Environment and inputs: Windows Server 2022 / 2025 baseline · Windows PowerShell with the specified role or RSAT modules; native utilities are identified in the text. Use delegated administration and elevation only where required.
Start with this check
Check the computer, command shell and account permissions. Replace example names, file paths, domains and interfaces with approved values. These commands help investigate the problem. Before making changes, check the rules and the effect on running applications.
Get-DhcpServerv4OptionValue -ComputerName DHCP01 -ScopeId 192.0.2.0
What the results mean
Replace the documentation scope with the real subnet. The query reads scope-level option values; server, reservation and policy overrides may affect the actual lease.
Fix the cause and check again
Compare the client's received options with all applicable configuration layers. Correct the winning managed option and renew only in a safe maintenance context.
Before changing production
Do not release a remotely administered server's lease before arranging another access path.