[citation needed] In 1530, he replaced bishop Krištof Ravbar as the governor (Landeshauptmann) of Duchy of Carniola.
After the death of Nicholas, Count of Salm in the same year, he was named commander in chief (Obristfeldhauptmann) of the troops in Hungary, where he held off under difficult circumstances new attacks from John Zápolya and Suleiman the Magnificent.
He gained a great victory in the Battle of Leobersdorf (1532) where he destroyed a Turkish army led by Kasim Bey.
He was arrested and sent to Vienna to be tried but escaped 31 January 1538 before the verdict could be rendered and fled to Fortress Kostajnica in Croatia.
Here he contacted enemies of the Habsburgs to plot against Ferdinand, but the young Count Nikola IV Zrinski stabbed him during dinner.