[Powershell] DNS updates (PTR)

Get-DnsServerResourceRecord -ZoneName 10.in-addr.arpa -Name 25.30.12

$Response = Read-Host "S'agit il uniquement des entrées à supprimer ? [Oui , Non]"
If ($Response.ToUpper() =  "OUI") {
    $RecordToDelete = Get-DnsServerResourceRecord -ZoneName 10.in-addr.arpa -Name 25.30.12
    $RecordToDelete | % { Remove-DnsServerResourceRecord -ZoneName  10.in-addr.arpa -InputObject $_ -force}

    Add-DnsServerResourceRecordPtr -Name "25.30.12" -ZoneName "10.in-addr.arpa" -AllowUpdateAny -TimeToLive 01:00:00 -PtrDomainName newserver.mydomain
}

$Response = $null