PowerShell To Retrieve All Site Collections for Web Application
Situation: You want a list of all site collections in a Web Application of your SharePoint Farm
Old Method: Go to Central Admin …
Smart Method: Use PowerShell
How?
Launch your Administrator: SharePoint 2010 Management Shell
Type
get-spsite –webapplication http://server
That’s it! Lists all your site collections in a web application.