PowerShell DNS Commands:Add-DnsServerPrimaryZone
PowerShell DNS Commands » Add-DnsServerPrimaryZone

Add-DnsServerPrimaryZone

DNS Cmdlet: Add-DnsServerPrimaryZone

Syntax:

Add-DnsServerPrimaryZone [-ResponsiblePerson <String>] [-DynamicUpdate <String>] [-LoadExisting] [-ComputerName <String>] [-PassThru] [-Name] <String> [-ReplicationScope] <String> [[-DirectoryPartitionName] <String>] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters and Description:

Parameters Description
ResponsiblePerson (Type: String) Specifies the person responsible for the zone.
DynamicUpdate (Type: String) Specifies how a zone accepts dynamic updates in terms of 'None', 'Secure' and 'NonsecureAndSecure'.
LoadExisting (Type: SwitchParameter) Represents that the server loads an existing file for the zone.
ComputerName (Type: String) Specify the IP address, FQDN, host name, or NETBIOS name of the DNS server.
PassThru (Type: SwitchParameter) Represents the item that you are currently working with.
ReplicationScope (Type: String) Specifies the partition to store AD-integrated zone.
DirectoryPartitionName (Type: String) Specifies the directory partition to store the zone.
CimSession (Type: CimSession[] ) Runs the cmdlet in a remote session. By default, it is run in the current session on the local computer.
ThrottleLimit (Type: Int32) Specifies the maximum number of parallel operations that can be performed.

For further details on this cmdlet, please refer this article.

Purpose of this cmdlet:

It lets you add an AD-integrated forward and reverse lookup zones as well as file-backed forward and reverse lookup zones.

Example:

Add-DnsServerPrimaryZone -Name "www.abc.com" -ReplicationScope "Forest" -PassThru

The above command creates an AD-integrated forward lookup zone called "www.abc.com" with Forest-wide replication scope.

Did you know that ADManager Plus lets you add, modify or delete objects from Active Directory easily with:

  • One-click AD objects creation via custom templates
  • Bulk management of AD objects via CSV
  • Efficient group membership and file server permissions management
  • Automated identification and cleanup of stale AD accounts, and more.

Download the free 30-day trial to check out the product!

Active Directory Management and Reporting Solution

ADManager Plus is a web-based tool which offers the capability to manage Active Directory attributes in bulk easily using CSV files or templates. Get built-in reports on users and export them in CSV, PDF, HTML and XLSX formats.

Unravel end-to-end Active Directory management with ADManager Plus

  •  
  •  
  •  
  • By clicking 'Schedule a personalized demo' you agree to processing of personal data according to the Privacy Policy.
AD User Management / Reports
Active Directory Reporting
Active Directory Management
Related Products