daily pastebin goal
89%
SHARE
TWEET

Untitled

a guest Jul 31st, 2016 138 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top