OK, I think I need to use the Get-Backup cmdlet. So I type in this...
Get-Backup –Svr MYSERVER -Inst MYSERVER -D MyDB -SnapInfo \\MYSERVER\X$\SnapInfoFolder
which gives this result:
Initializing [get-backup]
Connecting to server: [MYSERVER] [processing]
Connecting to server: [MYSERVER] [completed]
Number of Backups = 5.
According to the documentation, Get-Backup is supposed to list the backups, not count them. Have I missed something important?
Thanks
John