?
Solved

Export SharePoint list to xml file using powershell

Posted on 2014-02-14
4
Medium Priority
?
1,686 Views
Last Modified: 2014-02-24
Does anyone have a powerhell script to export a list to an XML file?  I'm looking to schedule this as a windows task.  Get-SPList is not a cmdlet or function.  I've got part of the script but cannot get he entire list exported.
0
Comment
Question by:butte-y
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:colly92002
ID: 39864555
0
 

Author Comment

by:butte-y
ID: 39871517
That one only pulls ID & Title, we are trying to export a very large list with all the items.
0
 
LVL 15

Accepted Solution

by:
colly92002 earned 690 total points
ID: 39871568
Just add a line for each column you want to export, i.e. if you have a column called "Name" then add

$xml.WriteAttributeString("Name",$_['Name']);


If for some reason you do not know the names of the columns, or you want to find out what your columns are called internally, then search Google for SharepointManager  and use that to investigate the list.
0
 

Author Comment

by:butte-y
ID: 39883815
I did and it did not work.  I'm looking for something to pull all the columns.  Thanks for your assistance, I will accept this as a solution.  I think I need to do some work on my end.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
Viewers will learn the different options available in the Backstage view in Excel 2013.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question