 He was appointed General-Major on 24 July 1800.Gyulay returned to active service in 1803 and was elevated in rank to Feldmarschall-Leutnant on 14 August 1808.The outbreak of the War of the Fifth Coalition found him in command of a division in the VIII Armeekorps of Johann Gabriel Chasteler de Courcelles.