Wednesday, February 21, 2018

How to get SharePoint site URL from Content DB

This command is applicable to Microsoft Management Shell tool for SharePoint 2010 or higher version. Open the Management Shell and type below command

P:>Get-SPSite -Limit All -ContentDatabase "="<CONTENT-DATABASE-NAME>" | select url

This command will provide list of all sites associated with above content database.

No comments:

Post a Comment