Start the Generator. Before leaving the room, have X with either Buster Parts equiped use a charged Crystal Wall to extract the Metal.
Use Axl to copy the guard. Go to the end of the hall and use the Salute () to get past the guard into the Generator Room. Use X's Thunder Dancer or Axl's Plasma Gun to charge up the Generator.