Solved

Export SharePoint list to xml file using powershell

Posted on 2014-02-14
4
1,587 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
  • 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 230 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

776 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