Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Sunday, January 10, 2016 11:48 AM
Dears,
Good day, hope all are fine and doing very well.
I have question: can I know which one will override the other: DHCP 2012 R2 Scope Options or Server Options!! let us say scope options, can I know if there is an option if I can enforce server options to override the scope options or the opposite?
Thanks in advance
Regards
All replies (10)
Wednesday, January 20, 2016 4:20 AM ✅Answered | 1 vote
Hi Abujalal,
According to your description, you want to set option 006 for all DHCP scopes.
The following method works for me:
1. create a text file with all the scopes' network ID you want to modify, for example:
10.0.0.0
20.0.0.0
30.0.0.0
……
2. save the text file as scopes.txt and store in C drive
3. open cmd, enter the following command to delete the original configuration:
for /f %i in (c:\scopes.txt) do netsh dhcp server 192.168.2.52(here is the ip address of your dhcp server) scope %i delete optionvalue 006
4. Then enter the following command to change the new scope option 006:
netsh dhcp server 192.168.2.52 set optionvalue 006 IPADDRESS 192.168.2.50(here is the dns server address you want to use).
5.Then you may turn to the GUI to check if the option has been changed.
Best Regards,
Anne
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected].
Sunday, January 10, 2016 1:02 PM | 1 vote
Hi
Server options will make those changes to all scopes while Scope options will make changes to just that individual scope,If there is a conflict between server and scope, then the scope options will take precedence.
This posting is provided AS IS with no warranties or guarantees,and confers no rights. Best regards Burak Uğur
Sunday, January 10, 2016 1:04 PM | 1 vote
Hi,
have a look here:
https://technet.microsoft.com/en-us/library/cc958929.aspx?f=255&MSPPError=-2147217396
the more specific setting will override the general Setting.
Regards
Eric
Microsoft MVP Cloud and Datacenter Management Microsoft Partner Technical Solutions Professional (P-TSP)
www.ericberg.de @ericberg_de
MCSE: Enterprise Devices and Apps | MCSE: Private Cloud | MCSE: Server Infrastructure | MCSE: Desktop Infrastructure
Monday, January 11, 2016 1:48 AM | 1 vote
Hi Abujalal,
Agree with above, scope option will override server option.
Best Regards,
Anne
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected].
Monday, January 11, 2016 5:41 PM
Dears,
Thank you very much for your valuable replies, I appreciate this.
Suppose I have let's say 100 scopes and I want to configure all these scopes with same DNS, so how to set this value for all these scopes?
Regards
Monday, January 11, 2016 9:05 PM | 1 vote
Hi,If all should have the same setting you can set it in server settings. If there is no other DNS configured in a specific scope this should work!
Regards
Eric
Microsoft MVP Cloud and Datacenter Management Microsoft Partner Technical Solutions Professional (P-TSP)
www.ericberg.de @ericberg_de
MCSE: Enterprise Devices and Apps | MCSE: Private Cloud | MCSE: Server Infrastructure | MCSE: Desktop Infrastructure
Thursday, January 14, 2016 12:22 PM
is there any Powershell cmdlet I can overwrite the scope options?
Thanks
Regards
Thursday, January 14, 2016 1:41 PM
Hi
You can check this aritlce for "DHCP Server Cmdlets in Windows PowerShell"
https://technet.microsoft.com/en-us/library/jj590751(v=wps.630).aspx
This posting is provided AS IS with no warranties or guarantees,and confers no rights. Best regards Burak Uğur
Thursday, January 21, 2016 1:10 PM
@Anne: what are the options I can set using this method? one more thing, the added IP of DNS it will be added to the Server options?
Thanks
Regards
Friday, January 22, 2016 6:04 AM
Hi AbdaAllah,
>what are the options I can set using this method?
I didn't test all options, but as far as I'm concerned, dhcp standard options will be apply.
>one more thing, the added IP of DNS it will be added to the Server options?
The option will both be added to server option and scope option.
Best Regards,
Anne
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected].