Subsequently, commander-in-chief of the Austrian Landwehr (militia) and army inspector, he became, after the murder of the heir to the throne, Archduke Franz Ferdinand, inspector-general of the Austro-Hungarian Army.