Restore more than 250 files using DPM 2010 and PowerShell
- by toryan
I've got what should be a fairly simple task: restore the following files from DPM:
D:\inetpub\wwwroot\*\index.*
I followed the instructions in this TechNet wiki and pretty much thought I had it.
Unfortunately, the New-SearchOption commandlet can only return 250 results, and this search would generate way more results than that. So actually only the first 250 files were restored, which is no use to anybody.
Does anyone know of any way to get around the 250 search results limit? I guess it would be possible to get the subdirectories of D:\inetpub\wwwroot and loop through them in turn, but I kind of want to keep this fairly simple as it is only for this task.