Select everything you want and then hit down on the keyboard to select the shape nodes (or just select the shape nodes straight away). Then run the following in the script editor.
Code:
for($s in `ls -sl`)
{
setAttr ($s + ".receiveShadows") 0;
setAttr ($s + ".castsShadows") 0;
}
Alan
Technical Director - Framestore
Currently working on: Your Highness
IMDB