I would like to automate the removal of HKKey_Local_Machines\System\CurrentControlSet\Services\VxD\DHCP\DHCPINFOXX where XX are numbers such as 00, 01, etc, through a login script.

There could be multiple occurences of DHCPInfoXX. Once removed, I do not want to remove them again.

I could actually probably get away with just modifying the DHCPServer key within DHCPINFOXX.

Any ideas on the best way to accomplish this?