Due to his court martial, Riker was unable to lead his regiment during the advance on Manassas in early March 1862, but was able to lead his men later that same month to Fortress Monroe, with the rest of the Army of the Potomac, as part of McClellan's Peninsula Campaign. Riker led his regiment into action at the Battle of Williamsburg and the Battle of Fair Oaks in May 1862.