Share via


Set method of the PS_DnsServerScavenging class

Sets scavenging settings on the Server.

Syntax

uint32 Set(
  [in]  boolean             ApplyOnAllZones,
  [in]  string              ComputerName,
  [in]  boolean             ScavengingState,
  [in]  datetime            RefreshInterval,
  [in]  datetime            ScavengingInterval,
  [in]  datetime            NoRefreshInterval,
  [in]  boolean             PassThru,
  [out] DnsServerScavenging cmdletOutput
);

Parameters

ApplyOnAllZones [in]

The server settings get applied on all zones

ComputerName [in]

Specifies the remote computer on which to execute the command

ScavengingState [in]

Enable Automatic scavenging of stale records. Determines whether the DNS scavenging feature is enabled by default on newly created zones. 0: Disables scavenging. This is the default setting. 1: Enables scavenging

RefreshInterval [in]

Sets a period of time that is allowed for dynamic updates to DNS records. This value is inherited automatically by zones on the server. To change the default, enter a value in the range of 0x1-0xFFFFFFFF. The default value from the server is 0xA8. Range = 0, 8760

ScavengingInterval [in]

Determines whether the scavenging feature for the DNS server is enabled, and sets the number of hours (0x0-0xFFFFFFFF) between scavenging cycles. The default setting is 0x0, which disables scavenging for the DNS server. A setting greater than 0x0 enables scavenging for the server and sets the number of hours between scavenging cycles.

Range = 0, 8760

NoRefreshInterval [in]

Sets a period of time in which no refreshes are accepted for dynamically updated records. This value is inherited automatically by zones on the server. To change the default, enter a value in the range of 0x1-0xFFFFFFFF. The default value from the server is 0xA8. Range = 0, 8760

PassThru [in]

If specified, returns the object or objects on which the operation was done.

cmdletOutput [out]

On return, contains an instance of the current object. This parameter returns a value only if PassThru is set to true.

Requirements

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

See also

PS_DnsServerScavenging