Get all SiteCollections from a Web Application

Please use the below powershell script to get the list of sitecollections from a web application and store it in a text file.

This will be run on Windows Powershell ISE
 

Microsoft.SharePoint.PowerShell"

Get-SPWebApplication http://yourwebapp.com | Get-SPSite | Select ID, Url | Out-File -FilePath "D:\spSites.txt"
 

Comments

Popular posts from this blog

Run Powershell script on Remote Computer/Server

Power BI Refresh Issue: unable to convert the value '' from the source data type 'VT_BSTR' to the expected data type 'VT_I8.

SPDActivities - DP.SharePoint.Workflow - Workflow failed to run