I created a batch file to automatically change IP address
and I'm experiencing DHCP error Due to Access Denied Failed 5
So I decided to follow the instruction below, and it works for me
However, may concern now is, does it have a security risks ?
Is it safe to grant full control permission to 'Network Service' and 'Dhcp'
and I'm experiencing DHCP error Due to Access Denied Failed 5
So I decided to follow the instruction below, and it works for me
However, may concern now is, does it have a security risks ?
Is it safe to grant full control permission to 'Network Service' and 'Dhcp'
Something you can do that may resolve this for you is the following:
HKEY_LOCAL_MACHINE
- Press Windows key and R key together to open the Run dialog
- In the Run dialog type regedit then click OK
- When the User Account Control appears click Yes
- The Registry Editorwindow will now open.
- On the left pane click and expand to the following location:
— SYSTEM
— CurrentControlSet
— Services
Dhcp
- Right-click on the Dhcp key In the left pane and select Permissions
Sample image
- In the window that opens click the Add button
Sample image
- In the next window that opens type network service in the empty field then click Check Names button.
This will open the window again showing NETWORK SERVICE in the field. Click OK
Sample images
- This will return you to the Permissions for Dhcp window. Check the Full Control box under the Allow column, then click OK
Sample image
HKEY_LOCAL_MACHINE
- You will now be back at the Registry Editor window. Click once on the Dhcp key in left pane, then type tc to auto scroll down to the Tcpip key.
Alternatively, just scroll down to this key.
— SYSTEM
— CurrentControlSet
— Services
Tcpip
- When you get there, right-click on the Tcpip key in the left pane and select Permissions
- In the window that opens click the Add button
- In the window that opens as before type network service in the empty field and click Check Names
- When you see this window showing NETWORK SERVICE click OK
- Check the Full Control box under Allow column then click OK
- Close the Registry Editor, and any other open programs.
- Restart computer for changes to take affect.
Once you have done this and restarted computer, hopefully this DHCP error 5 will not bother you again.