He sailed with his battalion to Guantanamo Bay, Cuba, in September 1940 and participated amphibious exercises. Riley was promoted to the rank of captain in May 1941 and appointed commanding officer of the Marine detachment aboard the battleship USS New York''. While aboard that ship, he took part in the escorting of cargo and troop ships to Iceland and Scotland.
