After a month of classroom instruction in aviation, Shepard was posted to a destroyer, , in August 1944; it was US Navy policy that aviation candidates should first have some service at sea. At the time the destroyer was deployed on active service in the Pacific Ocean. Shepard joined it when it returned to the naval base at Ulithi on October 30. After just two days at sea "Cogswell" helped rescue 172 sailors from the cruiser , which had been torpedoed by a Japanese submarine, then escorted the crippled ship back to Ulithi. The ship was buffeted by Typhoon Cobra in December 1944, a storm in which three other destroyers went down, and battled kamikazes in the invasion of Lingayen Gulf in January 1945.