netsh problem in programming dhcp optionvalue

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.
 
H

hco

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.
 
H

hco

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top