There is a feature of TFS that allows all commands run through it logged to an internal database. This is the TfsActivityLogging database and one of its key features is that it can never grow to large. If enabled, activity logging will log all commands