I'm trying to automate the creation of DHCP scopes, but have run into a tricky pickle.
When I try to create a scope via the commandline like so:
netsh dhcp server add scope 10.10.15.0 255.255.254.0 "Clients"
It returns an error that simply says "Parameter(s) passed are either incomplete or invalid."
If I try to create the scope with those same parameters in the DHCP MMC plugin, it successfully creates the scope, but it creates it as 10.10.14.0. Likewise, if I run the command above with 14 instead of 15, it works.