In 1841, being attached to Sir Robert Henry Sale's force, he took part in the celebrated passage of the defiles of the Ghilzais and in the fighting from Tezeen to Jalalabad. Here, after many months siege, his column in a "sortie en masse" defeated Akbar Khan on 7 April 1842. He was now made Deputy Lieutenant-General of the infantry division in Kabul, and in September he assisted at Jagdalak, at Tezeen, and at the release of the British prisoners at Kabul, besides taking a prominent part at Istalif. He next went through the Gwalior Campaign as Persian interpreter to Sir Hugh Gough, and distinguished himself at Maharajpur in 1843, and also in the Sikh Wars at the battles of Mudki, Ferozeshah and Sobraon in 1845.