Wednesday, April 4, 2012

How to change the maximum log files size of Windows DHCP server

By default, the maximum log files size of Windows DHCP server is 70MB. Once the log file reach 70MB, the new events will stop appending to the log file.

To modify the maximum log files size of DHCP server, we can modify the registry setting.

1. On the DHCP server, log in as Administrator.
2. Launch "Registry Editor".
3. Navigate to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCPServer\Parameters".


4. Double-click "DhcpLogFilesMaxSize".
5. Select "Decimal".
6. Update the "Value data" to "100".


7. Click "OK".
8. Close "Registry Editor".
9. Restart the "DHCP Server" service.

As a result, the maximum log files size of DHCP server has been updated.

This posting is provided “AS IS” with no warranties, and confers no rights!

3 comments:

  1. Thank you for this information.

    ReplyDelete
  2. I've increased this value but every night when I do an export of the DHCP database, the value re-sets itself to the default and my log files get truncated

    ReplyDelete
  3. Hi Ann,
    Sorry for late reply. Could you provide more information about your case and the environment?

    ReplyDelete