Home

Unable to delete DHCP Server option definitions

%3CLINGO-SUB%20id%3D%22lingo-sub-284223%22%20slang%3D%22en-US%22%3EUnable%20to%20delete%20DHCP%20Server%20option%20definitions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-284223%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20run%20into%20a%20situation%20that%20has%20defied%20all%20my%20online%20research%20so%20I'm%20hoping%20someone%20can%20point%20me%20in%20the%20right%20direction.%26nbsp%3B%20I%20have%20two%20DHCP%20servers%20(separated%20geographically)%20with%20%22non-standard%22%20server%20option%20definitions%20that%20I%20am%20attempting%20to%20remove.%26nbsp%3B%20I%20say%20%22non-standard%22%20because%20out%20of%20the%208%20DHCP%20servers%20deployed%2C%20these%20two%20are%20the%20only%20ones%20with%20these%20option%20definitions.%26nbsp%3B%20They%20are%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E132%20Enable%20NBT%20hostname%20resolution%3C%2FP%3E%3CP%3E133%20Enable%20gethostbyname()%20WINS%20resolution%3CBR%20%2F%3E134%20Hostname%20resolution%20order%3C%2FP%3E%3CP%3E136%20Enable%20WINS%20proxy%20agent%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%20matter%20what%20action%20I%20take%20-%20using%20the%20DHCP%20MMC%20console%2C%20using%20PowerShell%2C%20or%20using%20netsh%20-%20these%20settings%20under%20Predefined%20Options%20and%20Values%20persist.%26nbsp%3B%20For%20each%20action%2C%20I%20receive%20the%20following%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EDelete%20via%20DHCP%20MMC%20console%3C%2FSTRONG%3E-%20in%20the%20console%2C%20I%20select%20%22Set%20Predefined%20Options...%22%20and%20in%20the%20new%20dialog%2C%20I%20scroll%20down%20to%20one%20of%20the%20options%20I%20wish%20to%20delete.%26nbsp%3B%20I%20click%20%22Delete%22%20after%20selecting%20the%20option%2C%20which%20is%20then%20removed%20from%20the%20list.%20After%20clicking%20%22OK%22%20however%2C%20I'm%20told%20%22The%20specified%20option%20does%20not%20exist.%20(Option%20%23)%22.%26nbsp%3B%20When%20I%20close%20and%20re-open%20the%20DHCP%20console%2C%20the%20option%20is%20back%20in%20the%20list.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EUsing%20PowerShell%3C%2FSTRONG%3E-%20I%20execute%20the%20following%20command%20on%20the%20DHCP%20server%3A%3C%2FP%3E%3CPRE%3ERemove-DhcpServerv4OptionDefinition%20-OptionID%20136%3C%2FPRE%3E%3CP%3EWhich%20returns%20the%20following%20error%3A%3C%2FP%3E%3CPRE%3ERemove-DhcpServerv4OptionDefinition%20%3A%20Failed%20to%20delete%20option%20definition%20136%20on%20DHCP%20server%20%5BREDACTED%5D.%3CBR%20%2F%3EAt%20line%3A1%20char%3A1%3CBR%20%2F%3E%2B%20Remove-DhcpServerv4OptionDefinition%20-OptionID%20136%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20ObjectNotFound%3A%20(136%3Aroot%2FMicrosoft%2F...ptionDefinition)%20%5BRemove-DhcpServerv4OptionDefini%3CBR%20%2F%3Etion%5D%2C%20CimException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20DHCP%2020010%2CRemove-DhcpServerv4OptionDefinition%3C%2FPRE%3E%3CP%3E%3CSTRONG%3EUsing%20netsh%26nbsp%3B%3C%2FSTRONG%3E-%20I%20execute%20the%20following%20command%20on%20the%20DHCP%20server%3A%3C%2FP%3E%3CPRE%3Enetsh%20dhcp%20server%20delete%20optionvalue%20136%3C%2FPRE%3E%3CP%3EWhich%20returns%3A%3C%2FP%3E%3CPRE%3EThe%20specified%20option%20does%20not%20exist.%3C%2FPRE%3E%3CP%3EAnd%20yet%20in%20all%20cases%2C%20the%20options%20persist%20in%20both%20the%20console%20and%20querying%20the%20list%20of%20options%20via%20PowerShell.%26nbsp%3B%20If%20I%20query%20for%20the%20specific%20value%2C%20however%2C%20it%20returns%20the%20fact%20that%20the%20option%20is%20not%20found.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOther%20notes%3A%3C%2FP%3E%3CUL%3E%3CLI%3EI%20have%20tried%20restarting%20the%20DHCP%20service%20on%20both%20servers%2C%20with%20no%20change.%3C%2FLI%3E%3CLI%3EOne%20server%20is%20Windows%202012%20R2%2C%20while%20the%20other%20is%20Windows%202008%20R2.%3C%2FLI%3E%3CLI%3ENeither%20of%20these%20servers%20is%20configured%20for%20failover.%20(Feature%20doesn't%20exist%20in%202008.)%3C%2FLI%3E%3CLI%3ENone%20of%20these%20server%20option%26nbsp%3Bdefinitions%20are%20used%20in%20any%20of%20the%20scope%20configurations%20on%20these%20servers.%3C%2FLI%3E%3C%2FUL%3E%3CP%3EThis%20is%20an%20environment%20that%20I've%20inherited%20through%20a%20job%2Fcompany%20change%2C%20so%20I%20don't%20have%20much%20information%20on%20the%20history%20of%20these%20servers.%26nbsp%3B%20Any%20thoughts%2C%20blogs%2C%20articles%2C%20or%20ideas%20would%20be%20appreciated.%26nbsp%3B%20Thank%20you%20in%20advance%20for%20your%20time.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-Todd%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-284223%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ENetworking%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Todd Eichmann
Visitor

I've run into a situation that has defied all my online research so I'm hoping someone can point me in the right direction.  I have two DHCP servers (separated geographically) with "non-standard" server option definitions that I am attempting to remove.  I say "non-standard" because out of the 8 DHCP servers deployed, these two are the only ones with these option definitions.  They are:

 

132 Enable NBT hostname resolution

133 Enable gethostbyname() WINS resolution
134 Hostname resolution order

136 Enable WINS proxy agent

 

No matter what action I take - using the DHCP MMC console, using PowerShell, or using netsh - these settings under Predefined Options and Values persist.  For each action, I receive the following:

 

Delete via DHCP MMC console - in the console, I select "Set Predefined Options..." and in the new dialog, I scroll down to one of the options I wish to delete.  I click "Delete" after selecting the option, which is then removed from the list. After clicking "OK" however, I'm told "The specified option does not exist. (Option #)".  When I close and re-open the DHCP console, the option is back in the list.

 

Using PowerShell - I execute the following command on the DHCP server:

Remove-DhcpServerv4OptionDefinition -OptionID 136

Which returns the following error:

Remove-DhcpServerv4OptionDefinition : Failed to delete option definition 136 on DHCP server [REDACTED].
At line:1 char:1
+ Remove-DhcpServerv4OptionDefinition -OptionID 136
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (136:root/Microsoft/...ptionDefinition) [Remove-DhcpServerv4OptionDefini
tion], CimException
+ FullyQualifiedErrorId : DHCP 20010,Remove-DhcpServerv4OptionDefinition

Using netsh - I execute the following command on the DHCP server:

netsh dhcp server delete optionvalue 136

Which returns:

The specified option does not exist.

And yet in all cases, the options persist in both the console and querying the list of options via PowerShell.  If I query for the specific value, however, it returns the fact that the option is not found.

 

Other notes:

  • I have tried restarting the DHCP service on both servers, with no change.
  • One server is Windows 2012 R2, while the other is Windows 2008 R2.
  • Neither of these servers is configured for failover. (Feature doesn't exist in 2008.)
  • None of these server option definitions are used in any of the scope configurations on these servers.

This is an environment that I've inherited through a job/company change, so I don't have much information on the history of these servers.  Any thoughts, blogs, articles, or ideas would be appreciated.  Thank you in advance for your time.

 

-Todd

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies