In 1796 he served in Germany and in 1800 was able to repulse an attack from Breisach. For this act he was commended by Archduke Karl in the general staff and promoted to major. Hardegg, who had now been promoted to colonel and commander of the Schwarzenberg regiment, was unable to participate in the Campaign of 1805 due to illness.