 In 1690, when his influence at the Viennese court declined, he moved to the Hochstift Passau and entered the service of Johann Philipp von Lamberg, who had since become bishop there, and became his personal advisor and privy councilor.He then spent the rest of his life in Passau, which at that time was politically closely oriented to Austria.In 1708 he published his last work "Historische Anzeig von den eigentliche Ursachen der Privilegierungen des Hochlöblichsten Ertz-Hauses Oesterreich".