For one, get a desktop if the machine isn't going to be used as a portable device. That's what laptops are for. Plus, a desktop machine is always going to out-perform a laptop, so why have one if it's going to be locked down on a desk 24/7.
If that isn't an option, remove the battery. But even then, you will need to periodically fully charge and fully discharge the battery for it to remain viable if you should need it.