James Murray purchased his majority in the 15th Regiment of Foot in 1749, and the lieutenant-colonelcy in 1751. He commanded his regiment in the Raid on Rochefort, 1757, defending Sir John Mordaunt in his subsequent court-martial. He commanded a battalion in the 1758 Siege of Louisbourg along with his brother Alexander.