Guest User

Untitled

a guest
Jul 31st, 2016
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $rollback_path = "C:\scripts\current_roll_back.list"
  2.  
  3. $domain_content = get-content $rollback_path
  4. $zone_list = get-dnsserverzone | where {$_.IsDsIntegrated -eq $false} | select -expandproperty Zonename
  5.  
  6. foreach($line in $domain_content) {
  7.     if($zone_list -contains $line) {
  8. Remove-DnsServerZone "$line" -Force
  9. }
  10. }
Add Comment
Please, Sign In to add comment