This article describes all one needs to know about this: http://billjr.spaces.live.com/Blog/cns!28CBD6442F406227!869.entry
A local copy of this article is here.
whoami
netsh int ip set address name="Local Area Connection" source=static addr=10.0.0.3 mask=255.255.255.0 netsh int ip set address name="Local Area Connection" gateway=10.0.0.1 gwmetric=1 netsh int ip set dns name="Local Area Connection" source=static addr=10.0.0.1
The original posting for this hack can be found here.
This hack works for Windows XP and Vista. If you run Vista, you must run regedit as Administrator.
tasklist
tasklist /fi "USERNAME eq myuser"
taskkill /im programname.exe