We have recently upgraded from MOSS 2007 the SharePoint 2010 enterprise. When you run this commnad against a database that is not fully upgraded it tries to upgrade it. When you run it again and upgraded database it confirms the database is upgraded. We are looking fro a way to get this confirmation without it running though the upgrade. test-spcontentdatabase just tells you issues with the database not whether it has been upgraded or not. I know you can check the status in central admin but I need a programitic way to do it also. any ideas?