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 document workspace site data using SharePoint 2010 web service in powershell $uri="http://serverName:10736/sites/ECT2/DWS/_vti_bin/DWS.asmx?wsdl" [String]$document="Shared Documents/UserInfo.xml" [String]$lastUpdate=""
## Web Service Reference - http://Site/_vti_bin/DWS.asmx $dwsWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential [String]$getDwsData=$dwsWebServiceReference.GetDwsData($document,$lastUpdate)
## Creates an GetDwsData.xml file in the D:\ which contains theinformation about DWS and the list it contains $output = New-Object -TypeName System.IO.StreamWriter -ArgumentList "D:\GetDwsData.xml", $false $output.WriteLine("<?xml version=""1.0"" encoding=""utf-8"" ?>") $output.WriteLine($getDwsData) $output.WriteLine() $output.Dispose()
|
Output: GetDwsData.xml
The ouput contains the following information