I use Oracle Virtualbox, and Have Win XP and Android running under it. Great program, and easy to setup.
Microsoft has a VM program, but stopped development on it 5 or more years ago. www.virtualbox.org
If you have Windows 7 Professional or higher, you can use "Windows XP Mode" which is essentially Microsoft' Virtual PC. Of course, you can always use Oracle' Virtual Box. Having at least 4GB RAM will help a lot.
Anyway - legally, you need separate license for your virtualised Windows (or use it in "trial" mode without entering a license key during setup).
i'm definitely going to use the trail version because i'm only going to use this for a few days to practice some commands like tracert, ping, diskpart
its actually for the comptia a+ cert, because they added performance questions that act like a command prompt