Restore more than 250 files using DPM 2010 and PowerShell
        Posted  
        
            by 
                toryan
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by toryan
        
        
        
        Published on 2012-05-11T01:18:35Z
        Indexed on 
            2013/11/03
            15:57 UTC
        
        
        Read the original article
        Hit count: 537
        
powershell
|scdpm
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.
© Server Fault or respective owner