Force all pages to master theme

I have a large site where I’m trying to change the underlying theme. There are several hundred pages and many are not checked with “Use Master Theme”.

Is there any way to effect a mass change so that all pages will be marked to use the master?