Hello @red ,
first of all, you should not share your password here.
What exactly is your problem with your code? What is not working? Do you have error messages?
Hello @JMeixner ,
I revised it. apologies for that. so here’s my error below
PS C:\Scripts> Get-VBRRestorePoint -Backup $backup | Sort-Object -Property CreationTime -Descending | Select-Object -First 1
VM Name Creation Time Type
------- ------------- ----
rhel9.poc.com 3/27/2024 10:50:24 AM Increment
PS C:\Scripts> $backup = Get-VBRBackup -Name "RedhatDirectoryJob"
PS C:\Scripts> $restorepoint = Get-VBRRestorePoint -Backup $backup
PS C:\Scripts> $server = Get-VBRServer -Name "192.168.1.200"
PS C:\Scripts> $session = Get-VBRRestorePoint -Backup $backup | Sort-Object -Property CreationTime -Descending | Select-Object -First 1
PS C:\Scripts> $root = Get-VBRLinuxGuestItem -LinuxFlrObject $session
Get-VBRLinuxGuestItem : Cannot bind parameter 'LinuxFlrObject'. Cannot convert the "Veeam.Backup.Core.COib" value of type
"Veeam.Backup.Core.COib" to type "Veeam.Backup.PowerShell.Infos.VBRLinuxFlrObject".
At line:1 char:47
+ $root = Get-VBRLinuxGuestItem -LinuxFlrObject $session
+ ~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-VBRLinuxGuestItem], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Veeam.Backup.PowerShell.Cmdlets.GetVBRLinuxGuestItem
PS C:\Scripts> Get-VBRLinuxGuestItem
cmdlet Get-VBRLinuxGuestItem at command pipeline position 1
Supply values for the following parameters:
LinuxFlrObject:
Thanks for the suggestion @regnor! i will try that out.