Link to home
Start Free TrialLog in
Avatar of bsharath
bsharathFlag for India

asked on

Script that reserves ip's in the DHCOP server. Need a change to reseve in Excluded list ip's

Hi,

Script that reserves ip's in the DHCOP server. Need a change to reseve in Excluded list ip's
At present i run this code that reserves fine for ip's in the scope. I want for excluded ip's. Can this be changed to work on excluded ip's

for /f "tokens=1-4 delims=," %%i in (addresses.txt) do netsh Dhcp Server 129.110.105.25 scope 129.110.115.120 add reservedip %%i %%j %%k %%l

REgards
Sharath
ASKER CERTIFIED SOLUTION
Avatar of AmazingTech
AmazingTech

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bsharath

ASKER

Thanks
So i need to put the excluded ip range in the txt file and when run it will reserver the ip?
Avatar of AmazingTech
AmazingTech

DHCP will not hand out the excluded IPs.
Ok so this means that we cannot reserve the ip's that are excluded.
The script that you provided is to create a exclusion in the DHCP is that right.
I would assume that would be the case but not too sure.
Thanks for the help...
Please have a look at my open posts i am sure you could help on many
Here is one that is killing me. I need to block my network ASAP as we have our systems affected with Virus
https://www.experts-exchange.com/questions/24177047/Find-just-the-share-names-that-has-Everyone-full-access-from-a-list-of-machines-provided.html?cid=239&anchorAnswerId=23736904#a23736904