Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $rollback_path = "C:\scripts\current_roll_back.list"
- $domain_content = get-content $rollback_path
- $zone_list = get-dnsserverzone | where {$_.IsDsIntegrated -eq $false} | select -expandproperty Zonename
- foreach($line in $domain_content) {
- if($zone_list -contains $line) {
- Remove-DnsServerZone "$line" -Force
- }
- }
Add Comment
Please, Sign In to add comment