I've tried a ton of things already. like going into the bios and turning off plug and play, test the power management, disabling devices.
the only thing that had any effect was i removed the network card that was installed, and then totally uninstalled the card from the computer. when i did that the computer shut down fine. after putting it back in and windows dectecting new hardware and installing the drivers fine. it wouldn't shut down again. so somehow it must be related to the network card, but short of keeping it out i don't know the solution.