script for changing DHCP Exclusion Range
I am looking for script which can change/modify  DHCP Exclusion  ( from 1-10 to 1-20 ) among 2000 scopes.   if any one have  script please help
February 16th, 2015 12:56pm

Hi,

Prewritten scripts can be found in the repository here:

http://gallery.technet.microsoft.com/scriptcenter

If you don't find what you're after and you can't write your own, you can request a script here:

https://gallery.technet.microsoft.com/scriptcenter/site/requests

Let us know if you have any specific questions.

Free Windows Admin Tool Kit Click here and download it now
February 16th, 2015 1:02pm

Use NETSH to manage DHCP: https://technet.microsoft.com/en-us/library/cc787375(v=ws.10).aspx

February 16th, 2015 1:12pm

Hi Triyambak,

If you are running Server 2012 and newer, please check the cmdlet Add-DhcpServerv4ExclusionRange in DHCP Module.

DHCP Server Cmdlets in Windows PowerShell

You can also refer to these functions to add and remove the exclusion range to a DHCP scope on the old Windows Server version.

Remove-DHCPExclusionRange 

Add-DHCPExclusionRange 

Refer to:

PowerShell Module for DHCP

If there is anything else regarding this issue, please feel free to post back.

If you have any feedback on our support, please click here.

Best Regards,

Anna Wang

TechNet Community Support

Free Windows Admin Tool Kit Click here and download it now
February 19th, 2015 9:11am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics