|It'll need to be an exact replacement, even down to the bios branding or else your existing XP installation will give a blue screen and reboot. OEM motherboards of exactly the same model were made for various PC's. Compaq, HP, emachine and maybe others used the same boards but had their own bios. Swapping the same model OEM board from an HP to a compaq for example will cause the OS problem.|
If you plan on doing a fresh OS installation anyway then any motherboard that physically fits the case will work. The mounting studs are generic and shouldn't give you any problem.
There's a few things to pay attention to: First, the rear connection panel items--KB, mouse, audio, USB, etc. need to have the same placement unless the bezel is removable and you get one with the new motherboard. Secondly, make sure the new board is not larger than the old one. You probably have a micro board in it now so there may be other motherboards that are larger. Lastly you may need a bigger PSU. A lot of those system manufacturers scooted by with the cheapest ones they could find. A new board may require higher wattage.