Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

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. –  adbertram Nov 4 '13 at 14:32
add comment

Your Answer

 
discard

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.