Windows Server backup copies

I’m working on Windows Server backups daily and weekly with PowerShell and Set retention policy to 7 copies, till here completed successfully. I stuck at finding out no. of copies available on remote server.

I tryed wbadmin, get-wbbackupset commands in various ways but could not find the solution.

Please do help me on this.

welcome to the forum.

You will have to share more detailed information about what you’re trying to do and how your environment looks like.

What have you tried so far? Please share your code.

PS C:\WINDOWS\system32> Get-WBBackupSet -BackupTarget \testvm\WindowsImageBackup -MachineName testvm
Get-WBBackupSet : Cannot bind parameter ‘BackupTarget’. Cannot convert the “\testvm\WindowsImageBackup” value of type “System.String” to type “Microsoft.Windows.ServerBackup.Commands.WBBackupTarget”.
At line:1 char:31

  • Get-WBBackupSet -BackupTarget \testvm\WindowsImageBackup -MachineNam …
  •                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidArgument: (:slight_smile: [Get-WBBackupSet], ParameterBindingException
    • FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Windows.ServerBackup.Commands.GetWBBackupSet

Please, when you post code, error messages, console output or sample data format it as code using the “preformatted text” button ( </> ).

(You can edit your existing post to correct the formatting. You don’t have to create a new one)

Thanks in advance

The error is pretty obvious I think. The parameter -BackupTarget expects a particular type. You may show the rest of your code. … or at least the relevant part of it.

Please keep in mind - we cannot see your screen and we cannot read your mind AND we do not necessarily have the same experience and possiblities to test like you. So it would be nice if you share ALL needed information without beeing asked for each single one.

Thank you.


According to the documentation the parameter -BackupTarget is optional. So you could list all of the available ones and pick the one you’re after with a Where-Object if that’s easier for you.