Murray's father obtained a commission for him as a lieutenant of the
Saxon Army's Grenadier Guards, with a two-year leave to complete his studies. Taking up his commission in 1751, he served in the
Seven Years' War, battling the
Prussians until the capitulation that followed the
Siege of Pirna. He supported
Lord North's administration. he was appointed the colonel of the
Atholl Highlanders, newly raised by the Duke of Atholl, on 16 May 1778. He commanded them in Ireland until the regiment was disbanded in 1783. In 1780, Murray was appointed
Governor of Fort William. During his later years in Parliament he supported
William Pitt the Younger. He became a
major general in 1782, and on the disbanding of the Atholl Highlanders, was appointed lieutenant-colonel commandant of the
78th Highlanders. He was appointed their colonel when they were renumbered the 72nd in 1786, and was made a
lieutenant general in 1793. ==Personal life==