Link to home
Start Free TrialLog in
Avatar of Derrell brame
Derrell brame

asked on

using powershell to change dhcp option 6 and 15 for all scopes

I have all my scopes in a text file by their IP address. i can use set-dhcpserverv4optionvalue -computername "name" -scopeid "0.0.0.0" -optionid 6 -value 1.1.1.1

i have about 50 scopes i need to change and i want to point that scope to the text file to read and change all of the setting at once.
Avatar of Jeremy Weisinger
Jeremy Weisinger

What's the format of the text file?
Avatar of Derrell brame

ASKER

.txt
Sorry I wasn't clear. What does the data look like in the text file?
1.1.1.1
2.2.2.2
3.3.3.3

And so on
ASKER CERTIFIED SOLUTION
Avatar of Jeremy Weisinger
Jeremy Weisinger

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
Thanks
Glad to help. :)