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 obtained his release through the efforts of andrew michell, the british envoy to frederick the great. returning to scotland, he was given a captain's commission in his uncle's regiment, the black watch, and was placed in command of one of the companies being raised for the french and indian war. he then sailed to north america and joined the fighting in new york state. his own company was left to garrison fort edward, but he was wounded at fort ticonderoga in 1758 while leading captain reid's company. the wound was not serious, and he was present for amherst's campaign on lake champlain the following year. late that year he was given command, at his uncle's recommendation, of the grenadier company of the 2nd battalion of the regiment, raised in the previous year. he led them to the surrender of montreal in 1760.