Try this script on Adventureworks where there is more than one schema. A quick way to access the tables you want is to pop the second script into a temp table by selecting only the tables you need (or don't), and create your own sp_msforeachtable procedure.
Cheers!
-- Update Oct. 7, 2008: Cleaned up and updated some of the code