Battle of Cold Harbor
Anderson then fought at the Battle of Cold Harbor in early June, and participated in the rest of the Army of Northern Virginia's operations to the south of Petersburg, Virginia, from mid-June until October. Anderson was promoted to temporary lieutenant general on May 31.