Share via


SharePoint - web usercount

# Purdon, god of SharePoint things
# recently sent me this tid-bit for when you are considering
# how many licenses you might need, this info might be useful!

$SPUserCollection = $SPweb.AllUsers
$UserCount = $SPUserCollection.Count
write-output " Users in WEB: $UserCount"

Comments

  • Anonymous
    May 30, 2011
    In a bit more optimized form: write-output $SPWeb.AllUsers.Count