Before you begin
If your Dell XPS 15 9500 isn't holding a charge as long as it used to, this could be due to a failing battery. Another sign of a failing and/or dead battery is the laptop only powering on when connected to a power cord. If the laptop isn't powering on even with a power cord, trying a different power cord could potentially fix the issue. The battery is used to power the laptop when unplugged from a power cord. Batteries have a limited charge cycle, and over time batteries will become depleted and either not last as long or completely die. Be careful to not puncture the battery when removing it as a punctured battery is a fire hazard. If you notice any swelling in the battery, take appropriate precautions.