You need to enable render layers and passes. They're in the render globals. From there you can control what passes (beauty, color, shadows, etc) will be rendered. I think you need to use the batch render as well... not sure tho.