During the War of the Spanish succession Johann Wilhelm received also the Bavarian Upper Palatinate, which was returned to Bavaria in 1714.
Hispaania pärilussõja ajal sai Johann Wilhelm ka Baieri Oberpfalzi, mis tagastati Baierile aastal 1714.