PowerShell DNS Commands:Add-DnsServerRecursionScope
PowerShell DNS Commands » Add-DnsServerRecursionScope

Add-DnsServerRecursionScope

DNS Cmdlet: Add-DnsServerRecursionScope

Syntax:

Add-DnsServerRecursionScope [-Name] <String> [[-Forwarder] <IPAddress[]>] [[-EnableRecursion] <Boolean>][-PassThru][-ComputerName <String>] [-CimSession <CimSession[]>][-ThrottleLimit <Int32>][-AsJob][-WhatIf] [-Confirm][<CommonParameters>]

Parameters and Description:

Parameters Description
Name (Type: String) Specifies the name of the recursion scope.
Forwarder (Type: IPAddress[] ) Specifies the list of IP addresses of forwarders for this recursion scope.
EnableRecursion (Type: Boolean) Denotes whether or not the recursion is to be enabled.
PassThru (Type: SwitchParameter) Represents the item that you are currently working with.
ComputerName (Type: String) Enter the IP address, FQDN, host name or NETBIOS name of the remote DNS server.
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 to be established to run the cmdlet.
WhatIf (Type: SwitchParameter) Represents what would happen if the cmdlet runs.

For more information on this cmdlet, please refer to this article.

Purpose of this cmdlet:

The Add-DnsServerRecursionScope cmdlet lets you add a recursion scope on a DNS server. The recursion scope specifies whether the recursion is enabled and consists of a list of forwarders.

Example:

Add-DnsServerRecursionScope -Name "ScopeInternal" -Forwarder xx.x.x.x,yyy.yy.y.y
-EnableRecursion $True -PassThru

The above command adds a recursion scope to the DNS server; enables recursion and also specifies two forwarders.

Did you know that you can do the following computer objects-related tasks without any scripts:

  • List all computers running on a specific operating system.
  • Create, enable, or disable computers in bulk.
  • Generate report to see all the computers in a domain which are trusted for delegation, and more.

Download the 30-day free trial of ADManager Plus and check out the rest of the features the powerful tool offers!

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