During the First Anglo-Sikh War he fought at the Battle of Ferozeshah, 1845, and at the Battle of Sobraon, 1846, and was awarded the Sutlej Medal. During the Indian Mutiny he served under Brigadier James Neill at Allahabad, and was credited by Field Marshal Roberts with saving the Allahabad arsenal from falling into the hands of the mutineers. In 1858, he served in Oudh. He was appointed Commissary of Ordnance for the Army and Inspector of Ordnance and Magazines in Bengal.