In 1813, he entered the Austrian service, and was appointed imperial commissioner and major of the rifle corps in Tyrol. He took part in the wars for liberty, and later on, as counsellor of the government, in the reorganization of the country. In 1815 he was called to Vienna, and went to Paris with the imperial staff.