I've been looking at ways to automatically get information about SQL backups, and the Powershell script in this Technet article would do nicely, except for an issue with the data it returns.
When run, it returns a "last backup" date for test databases I know have not been backed up via SQL. It would appear that it's taking the times of the system backup; it coincides with beVSS start times in the OS event log (the server is backed up by Backup Exec 2010, not using the SQL agent).
I would like it to gather the last time that the SQL backup was run, not a system backup. Is this possible to filter out somehow?
The DB Server is Windows Server 2008/SQL server 2008.
Edit:
To clarify, I'm looking for solutions in PowerShell, not SQL, and to understand why PowerShell returns what it does.