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:
- $uri="http://serverName:10736/sites/ECT/_vti_bin/Lists.asmx?wsdl"
- $listWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential
- [System.Xml.XmlNode]$xmlNode=$listWebServiceReference.GetListCollection()
- ## Creates an Lists.xml file in the D:\ which contains all the Names and GUIDs
- $output = New-Object -TypeName System.IO.StreamWriter -ArgumentList "D:\Lists.xml", $false
- $output.WriteLine("<?xml version=""1.0"" encoding=""utf-8"" ?>")
- $output.WriteLine($xmlNode.OuterXml)
- $output.WriteLine()
- $output.Dispose()
- write-host -ForegroundColor Magenta "Getting all the lists title........."
- foreach($node in $xmlNode.List)
- {
- ## Displays all the lists title from the site
- write-host -ForegroundColor Green $node.Title
- }


Minal PatelPosted Jan 29, 2021, 8:35 AM
I am getting an error like "Server was unable to process the request----->Access is denied". Can you tell me is it because my site is form based authentication configured? please suggest how can I authenticate using powershell script