Solved

Export SharePoint list to xml file using powershell

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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 …
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now