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 (1)

  1. jussi says:

    In a bit more optimized form:

    write-output $SPWeb.AllUsers.Count

Skip to main content