Frank,
I don't think it is possible to do this via command-line, Windows just does not work that way.
But it is something that can be scripted, I do something similar at work with the TCP/IP setting. If I get a chance I'll throw something together that should help you.