2

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.

jscott
  • 24,484
  • 8
  • 79
  • 100
toryan
  • 231
  • 3
  • 6
  • 17

1 Answers1

0

I'm not familiar with the DPM implementation of Powershell but it looks like if native DPM cmdlets won't let you get over 250 items you're going to have to get them one at a time. Try something like this:

gci D:\inetpub\wwwroot -Recurse -File -Filter index.* | % { New-SearchOption $_ }
Adam Bertram
  • 331
  • 1
  • 4
  • 11