Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

restore-dfsrpreservedfiles command question

$
0
0

I had an issue with DFSR and after it came back up and resync'd I have a mess as you can imagine.  I have files from 7/11 and 9/5.  I want to restore only the 9/5 files.  I can "Get" and filter the xml to show only the files I want.

Example: get-dfsrpreservedfiles -path "c:\mypath...\preexistingmanifest.xml" | where-object preservedtime -ge "9/5/2014 8:00:00 AM"  This lists all the files I want.

With my limited experience I tried this command.  Example: restore-dfsrpreservedfiles -path "c:\mypath...\preexistingmanifest.xml" | where-object preservedtime -ge "9/5/2014 8:00:00 AM" | -restoretopath "c:\restored" -force    It didn't work.

How can I get it to only restore those 9/5 files?  I'm very new to powershell and appreciate the help.


Viewing all articles
Browse latest Browse all 21975


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>