Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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

share|improve this answer
    
But what do I filter? –  user8746 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 –  user8746 Oct 4 '12 at 21:53
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.