Solved

Export SharePoint list to xml file using powershell

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

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 System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
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…

718 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