Does anyone know why on windows server 2003 the following command doesn't work?:
system("netsh dhcp server 10.42.1.1 scope 10.42.0.0 addreservedip 10.42.1.20 121212121212");
This command returns "You must use a valid scope address." HOWEVER, if I run the exact netsh command at the command prompt it goes through perfectly.