netsh problem in programming dhcp optionvalue

  • Thread starter Thread starter GCharbonn
  • Start date Start date
G

GCharbonn

I'm trying to use the netsh to configure a complex DHCP option. In particular
it has to have an ENCAPSULATED data type. When I use the netsh as follows:
dhcp server>add optiondef 125 opt125 encapsulated

DHCP Server Add OptionDef failed.

Parameter(s) passed are either incomplete or invalid.

Yet under win2003 DHCP it is accepted.
 
GCharbonn said:
I'm trying to use the netsh to configure a complex DHCP option. In particular
it has to have an ENCAPSULATED data type. When I use the netsh as follows:
dhcp server>add optiondef 125 opt125 encapsulated

DHCP Server Add OptionDef failed.

Parameter(s) passed are either incomplete or invalid.

Yet under win2003 DHCP it is accepted.
 
I ran into the same problem and are now using a BYTE array for w2000 wich
should work as well as encapsulated. however if you do a netsh dump the
settings will be in decimal while if you want to change the settings you will
need to send them back in hex.
 
Back
Top