​How to check the number of site collection users using PowerShell?


Solution:

​Go to the server side, and open PowerShell, then enter the command line below:

$site=Get-SPSite("http://konglh2008r2") 
$web=$site.RootWeb
$web.SiteUsers

Note: Please replace the bold part with desired site collection address.

Applies for: SharePoint 2013, SharePoint 2010, SharePoint 2007

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>