title: How to programmatically read items from a VSS backup drive?
body: <p>I use VSS to backup to a backup drive. I'd like attach that drive on another machine and list all the backups on it and then list all the items within a particular backup.</p>
  
  <p>I know you can do it at the command prompt with the <code>wbadmin</code> tool using <code>wbadmin get versions</code> and <code>wbadmin get items</code> but I'd like to read the values programmatically.</p>
  
  <p>I know that there are <a href="http://technet.microsoft.com/en-us/library/ee706683.aspx" rel="nofollow">powershell commands</a> for working with VSS but they seem to only work with a local 'Policy' object. I can't find a way to examinine a disk from another machine (with a different Policy). For example the Get-WBBackupTarget doesn't have a parameter to point it at my backup drive letter, only a Policy object. And Get-WBPolicy only returns the current Policy for the system afaik.</p>
  
  <p>So is it possible to read information from a backup drive programmatically?</p>