Enable DHCP Server Logging on Windows Server 2019

0
13890
DHCP Server

Problem

Sometimes, You want to enable DHCP Server logging to monitor the DHCP server to track down the issue you have.

Solution

Using PowerShell Command

You can enable the DHCP Server log using Set-DhcpServerAuditLog CmdLet. The Set-DhcpServerAuditLog cmdlet sets the Dynamic Host Configuration Protocol (DHCP) server service audit log configuration on the DHCP server service that runs on the computer. This cmdlet also sets the enabled state for the DHCP server service audit log.

Set-DhcpServerAuditLog -ComputerName "dhcpserver.msnoob.com" -Enable $True -Path "D:\dhcpauditlog\" -MaxMBFileSize 100

Using a graphical user interface

  1. Open the DHCP snap-in.
  2. In the left pane, right-click on DHCP and select Add Server.
  3. Type in the name of the DHCP Server you want to target and click OK.
  4. Right-click the server node and select Properties.
  5. On the General tab, check the box beside Enable DHCP audit logging.
  6. Click OK.
Enable DHCP Log
Enable DHCP Log

LEAVE A REPLY

Please enter your comment!
Please enter your name here