Solved

Export SharePoint list to xml file using powershell

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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

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 …
Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

732 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