AddByWins method of the PS_DnsServerResourceRecord class

Adds the record to a specified zone in a DNS server.


uint32 AddByWins(
  [in]  datetime                LookupTimeout,
  [in]  boolean                 Replicate,
  [in]  string                  WinsServers[],
  [in]  string                  ZoneName,
  [in]  string                  ComputerName,
  [in]  datetime                CacheTimeout,
  [in]  boolean                 PassThru,
  [in]  boolean                 Force,
  [in]  boolean                 Wins,
  [in]  string                  ZoneScope,
  [out] DnsServerResourceRecord cmdletOutput


LookupTimeout [in]

Specifies the lookup time-out value for a resource record.

Replicate [in]

WINS flag to allow or disallow replication

WinsServers [in]

Specifies one or more IP addresses of WINS servers that you want to use for a resource record.

ZoneName [in]

Specifies the name of the zone.

ComputerName [in]

The name of the DNS server. If you do not specify this parameter, the command runs on the local system. You can specify an IP address or any value that resolves to an IP address, such as a fully qualified domain name (FQDN), host name, or NETBIOS name.

CacheTimeout [in]

// Time, in seconds, that a DNS Server using WINS Look up may cache the WINS server's response.

PassThru [in]

true to return the object that was modified by the method. By default, this method does not generate any output.

Force [in]

Adds a resource record without prompting you for confirmation. By default, the method prompts you for confirmation before it proceeds.

Wins [in]

IF specified, creates a WINS DNS Server resource record.

ZoneScope [in]

Name of the zone scope.

Windows Server 2012:  Not supported.

cmdletOutput [out]

Receives an embedded instance of the DnsServerResourceRecord class.


Minimum supported client

None supported

Minimum supported server

Windows Server 2012







See also