Wednesday, March 7, 2018

Get number of subsite in a site collection - SharePoint

How to get number of subsites in a site collection using Powershell?
 
 
 
 
$site = Get-SPSite http://YourSharePointSite
$site.AllWebs.Count
 
 
 
 

No comments:

Post a Comment