Steps Involved:
- Open SharePoint 2010 Management Shell by going to Start | All Programs | SharePoint | Microsoft SharePoint 2010 Products | SharePoint 2010 Management Shell (Run as Administrator).
- Run the following script.
Powershell Script:
##Get all the picture libraries using SharePoint 2010 web service in powershell $uri="http://serverName:10736/sites/ECT2/_vti_bin/Imaging.asmx?wsdl"
## Web Service Reference - http://Site/_vti_bin/Imaging.asmx $imagingWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential [System.Xml.XmlNode]$xmlNode= $imagingWebServiceReference.ListPictureLibrary()
## Creates an GetPictureLibraries.xml file in the D:\ which contains the information abot all the picture libraries $output = New-Object -TypeName System.IO.StreamWriter -ArgumentList "D:\GetPictureLibraries.xml", $false $output.WriteLine("<?xml version=""1.0"" encoding=""utf-8"" ?>") $output.WriteLine($xmlNode.OuterXml) $output.WriteLine() $output.Dispose()
|
Output: GetPictureLibraries.xml