When World War I broke out in 1914, Shepard received a commission as a second lieutenant in the Royal Garrison Artillery, an arm of the Royal Artillery. On 16 February 1917, he was made an acting captain whilst second-in-command of a siege battery. He was awarded the Military Cross for his service at the Battle of Passchendaele. By the end of the war, he had achieved the rank of major.