SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. 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 am trying to export list items to a local folder but I only want certain items, not the complete list.Is this possible?

I have tried to iterate through the SPListCollection with the "Modified" Property but I wasn't able to get the items themselves, just the attachments.

Here is my code:

Export-SPWeb -Identity "http://myurl.com" -   path "C:\Export\Lists\Announcements.cmp" -ItemUrl "/Lists/Announcements/AllItems.aspx" -Force | where ( --Here I want to filter List Items by Modified Date  )
share|improve this question

Try using the actual field name for the Modified field which is "Last_x0020_Modified"

share|improve this answer
    
But what do I filter? – Walter Johnson Oct 4 '12 at 21:33
    
My apologies, I was looking at this from a pure powershell perspective and it didn't register that you were using Export-SPWeb. I don't believe that command supports piping as it is a functional command not a selector. – Dave Wise Oct 4 '12 at 21:43
    
That is what I thought. Thank you – Walter Johnson Oct 4 '12 at 21:53

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.