Share via


Set method of the PS_DhcpServerAuditLog class

Sets DHCP server audit log configuration on the server - including enabling or disabling it.

Syntax

uint32 Set(
  [in]  boolean            Enable,
  [in]  string             Path,
  [in]  uint32             MaxMBFileSize,
  [in]  uint32             DiskCheckInterval,
  [in]  uint32             MinMBDiskSpace,
  [in]  string             ComputerName,
  [in]  boolean            PassThru,
  [out] DhcpServerAuditLog cmdletOutput
);

Parameters

Enable [in]

Enable/Disable the DHCP server audit log. Valid values are True and False.

Path [in]

Path to the directory where the audit log files should be created by the server

MaxMBFileSize [in]

Maximum size of the audit log in MB

DiskCheckInterval [in]

Number of audit log events after which the DHCP server should check available disk space (MinMBDiskSpace)

MinMBDiskSpace [in]

The minimum required disk space, in bytes, for audit log storage. Before logging a new audit log message, the DHCP server checks if the minimum disk space specified by this parameter is available on the disk or not. If it is not available, DHCP server halts audit logging till the time the required minimum disk space is available. If the value configured is 0 or left as default, minimum disk is set to 20MB.

ComputerName [in]

DNS name or IP address of the target computer running the DHCP server service.

PassThru [in]

If this parameter is specified, the cmdlet returns the PowerShell object which is modified.

cmdletOutput [out]

An embedded instance of the DhcpServerAuditLog class.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\DHCP
MOF
DhcpServerPsProvider.mof
DLL
DhcpServerPsProvider.dll

See also

PS_DhcpServerAuditLog