 He also held some secular offices – in 1817 he became the royal Prussian counselor for education in Posen District.Prussian authorities, considering Dunin's loyalty to the King of Prussia, recommended him as a candidate for the sees of archbishops of Poznań and Gniezno.He was appointed to those offices in 1830 and became bishop one year later.