In 1830 and 1831 he took part in the Dutch campaign in Belgium, and in 1844, after being promoted to the rank of general, was sent on an important mission to the Dutch East Indies to inquire into the state of their military defences. In 1847, he was appointed governor at The Hague, and commandant in South Holland.