Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got what should be a fairly simple task: restore the following files from DPM:


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.

share|improve this question

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 $_ }
share|improve this answer
Cheers for answering! Unfortunately the time when this would have been useful has passed so I can't verify whether this works :) – toryan Nov 4 '13 at 13:25
At least it might be helpful for the next guy that comes around. – Adam Bertram Nov 4 '13 at 14:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.