For some reason Windows DHCP service, for both IPv4 and IPv6, bugged by itself in one of my laptops, because the network adaptors can't receive correct settings anymore. My internet gateway IP is 192.168.1.254, however both wireless and Ethernet adaptors are receiving 169.254.1.x local IP and 255.255.0.0 subnet mask, when the proper addresses should be 192.168.1.x and 255.255.255.0 respectively.
As expected, when I set a static local IP on both network interface cards, connectivity is restored. The other Windows machines and smartphones in the network are assigned IPs fine, meaning my internet modem DHCP is working properly. I can't recall when this issue began, I believe it was a couple of days ago, probably after a Windows update (now running build 18363.816).
And now comes the actual issue: I found in this thread that the solution is restarting the DHCP Client service on a elevated command prompt:
net stop dhcp
net start dhcp
However, even in adminstrative prompt, I get this error, which seems to be caused by the lack of appropriate permission:
System error 5 has occurred.
Access is denied.
I get the same error when attempting to stop or restart DHCP Client service on Services console. I searched everywhere on how to get permission to restart this service, and one source instructed to add NETWORK SERVICE entity to DHCP Client security settings and granting it Full Control permission, but the error persisted.
Also uninstalled drivers for both wired and wireless adaptors, but still no luck, as the issue is caused by a broken Windows service. I'm short of doing a refresh install, because I just can't find a solution to this issue. I know I can always fix static local IPs, but I would like Windows DHCP to work again.