PowerShell DNS Commands:Enable-DnsServerPolicy
PowerShell DNS Commands » Enable-DnsServerPolicy

Enable-DnsServerPolicy

DNS Cmdlet: Enable-DnsServerPolicy

Syntax:

Enable-DnsServerPolicy[-Level] <String>[[-Name] <String>][-ComputerName <String>] [[-ZoneName] <String>][-Force][-CimSession <CimSession[]>][-ThrottleLimit <Int32>] [-AsJob][-WhatIf][-Confirm][<CommonParameters>]

Parameters and Description:

Parameters Description
Level (Type: String) Denotes the level at which the policies will be disabled.
ComputerName (Type: String) Enter the IP address, NETBIOS name, FQDN or host name of the DNS server.
ComputerName (Type: String) Forces the command to execute without user's confirmation.
CimSession (Type: CimSession [] )
WhatIf (Type: SwitchParameter)
Runs the cmdlet on a remote computer or session. For example: the output of Get-CimSession or New-CimSession cmdlet. By default, the cmdlet is run on the local computer in the current session.
ZoneName (Type: String) Specifies the DNS zone to which the record is added
Name (Type: String) Denotes the name of the zone to be converted.
CimSession (Type: CimSession [] )
WhatIf (Type: SwitchParameter)
Shows what would happen if the cmdlet runs.
ThrottleLimit (Type: Int32) Specifies the maximum number of parallel operations that can be allowed to run this cmdlet. If its value is 0 or not specified, PowerShell will automatically calculate the right throttle limit.

To know further on Enable-DnsServerPolicy cmdlet, please refer to this article.

Purpose of this cmdlet:

The Enable-DnsServerPolicy cmdlet enables query resolution policies as well as zone transfer policies on the DNS server.

Example:

Enable-DnsServerPolicy -Level Zone -Name "Policy01" -ZoneName "EuropeZone"

The above command enables a zone level policy named Policy0.

Did you know that ADManager Plus lets you can add, modify or delete AD objects easily with:

  • One-click AD objects creation via custom templates
  • Bulk AD objects management via CSV
  • Automated identification and also cleanup of stale AD accounts, and more

Download the 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