hi,
i try to write a powershell script that can list the different possibilite for the restoration of a file ... extention ...
#variable for the DPMSearchOption...
$locationpath = "E:\xx\xxx\yyy\"#path find file
$fichierrecherche = ".tif" #ext to find
$recoverydateto = ((Get-Date).AddDays(-40)).toshortdatestring() #date
$recoverydatefrom = ((Get-Date).AddDays(-300)).toshortdatestring() # date
#main code
$pg = Get-ProtectionGroup -DPMServerName dpm1 | Where-Object {$_.name -eq "Dpm1-Fileserverxx"}
$ds = Get-Datasource $pg | Where-Object {($_.computer -eq "FS01") -and ($_.name -eq "E:\")} #DataSource for F01 hdd E
#SearchOption
$SO=New-DPMSearchOption -FromRecoveryPoint $recoverydatefrom -ToRecoveryPoint $recoverydateto -SearchDetail FilesFolders -SearchType endsWith -SearchString $fichierrecherche -Location $locationpath -Recursive -ErrorAction SilentlyContinue
#make the search in dpm
$ri = Get-DpmRecoverableItem -Datasource $ds -SearchOption $SO -ErrorAction SilentlyContinue
I have more than 250 object in $RI...
this code work perfect if the $RI are smaller than 250 object
Is there any solution to have more than 250 object ... sometime ... the users giving no much information to restore ....