• Home
  • All
  • ASCII
  • Health
    • Mental
  • Software
  • Tutorials
  • Graphics
    • Emoticons
Software Powershell Script to Remove Automatic DNS on all DHCP Reservations in AD

Powershell Script to Remove Automatic DNS on all DHCP Reservations in AD

Published: 05 July 2016 | Written by some jerk | Print | Email | Hits: 622

 

FYI, this is the script

 

$scopes = Get-DhcpServerV4Scope

foreach ($scope in $scopes)

{

 $reservs = get-dhcpserverv4reservation -ScopeID $scope

  foreach ($reserv in $reservs)

   {

     Set-DHCPServerv4DNSSetting -IPAddress $reserv.IPAddress -DynamicUpdates Never

   }

}

Prev Next

Copyright © 2015. All Rights Reserved.