William was educated at George Watson's College and entered the Royal Military Academy, Woolwich and was commissioned as a second lieutenant into the British Army's Royal Artillery in January 1913. He served in the First World War, winning the Distinguished Service Order (DSO) at the Battle of Le Cateau in 1914 and later the Military Cross and was mentioned in dispatches four times throughout the war.