Public/Add-DNSZoneReverseWithAging.ps1
Function Add-DNSZoneReverseWithAging { param( [Parameter(Mandatory)][string]$ComputerName, [Parameter(Mandatory)][string]$Zone ) ForEach ($ZoneName in $Zone) { Add-DnsServerPrimaryZone -DynamicUpdate NonsecureAndSecure -Name $ZoneName -ZoneFile "$ZoneName.dns" -ComputerName $ComputerName Set-DnsServerZoneAging -Name $ZoneName -Aging $true -RefreshInterval (New-TimeSpan -Days 7) -NoRefreshInterval (New-TimeSpan -Days 7) -ComputerName $ComputerName } } |