Change the default DHCP Audit Log file location using PowerShell ( one-liners)

The following one-liner PowerShell cmdlet will allow you to change the default location of the Audit Log file on a DHCP Server.

Execute the following cmdlet using an elevated PowerShell Prompt from the target DHCP Server to verify that DHCP Audit Logging is enabled.


If Enable=True then execute the following cmdlet.

If Enable=False then execute the following cmdlet to enable the Audit Logging and alter the default file location.

In order, the change to take place, the DHCP Service must be restarted.

Thanks for reading!

George Markou

My Name is George Markou, IT Pro, Geek and Fancy Gadgets enthusiast. I am focused on Virtualization and Cloud Technologies.

%d bloggers like this: