Microgrid system battery modification