Before you begin
A laptop’s battery is pretty much the only component that can be safely removed while the device is running. However, in the case that you’re removing the battery while it’s on, make sure that the device is plugged in so as to avoid a shutdown.