Comparing Environments I am a SQL Server dba. I have been asked to compare our production environment to test from a number of different perspectives. These are windows patch level,sql service pack, to database size and compabilty modes. I also need to identify global environmental differences such as max dop settings to memory allocation. Can anyone advise of useful tsql or powershell where this can be captured as a report style format.
Your best bet is to use :

Discover, Diagnose, and Document ALL Your SQL Servers On Your Coffee Break using SQL Power Doc written by  kendal vandyke

This is written in Powershell.