Partager via


Set method of the PS_DnsServerGlobalQueryBlockList class

Overwrites the list of names the server does not resolve.

Syntax

uint32 Set(
  [in]  boolean                       Enable,
  [in]  string                        List[],
  [in]  string                        ComputerName,
  [in]  boolean                       PassThru,
  [out] DnsServerGlobalQueryBlockList cmdletOutput
);

Parameters

Enable [in]

Enables or disables support for the global query block list that blocks name resolution for names in the list. The DNS Server service creates and enables the global query block list by default when the service starts the first time. 0: Disables support for the global query block list. When you set the value of this command to 0, the DNS Server service responds to queries for names in the block list. 1: Enables support for the global query block list. When you set the value of this command to 1, the DNS Server service does not respond to queries for names in the block list.

List [in]

Replaces the current global query block list with a list of the names that you specify. If you do not specify any names, this command clears the block list. By default, the global query block list contains the following items: isatap; wpad: The DNS Server service can remove either or both of these names when it starts the first time, if it finds these names in an existing zone.

ComputerName [in]

Specifies the remote computer on which to execute the command

PassThru [in]

true to return the current instance in the CmdletOutput parameter. The default is false.

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_DnsServerGlobalQueryBlockList