What is the difference between Get-SPSite and Get-SPSiteAdministration cmdlets?

I know Get-SPSite has more properties, but I want to know the core difference.

Appreciate if u could explain in detail.

  • Did you get your desired details in below answer? or you want something else as details for your answer?
    – Hardik
    May 30, 2016 at 8:57

1 Answer 1


FOR Get-SPSiteAdministrator

The Get-SPSiteAdminitration cmdlet returns a site administration object that allows farm administrators to view certain information about site collections to which they might not have access.

FOR Get-SPSite

The Get-SPSite cmdlet returns either a single site that matches the Identity parameter, or all the sites that match the Filter parameter for the specified scope. The scopes are the WebApplication, ContentDatabase and SiteSubscription parameters. If none of these scopes is provided, the scope is the farm. If the scope is specified with no Filter parameter, all sites in that scope are returned.

The Identity parameter supports providing a partial URL that ends in a wildcard character (*). All site collections that match this partial URL for the specified scope are returned. Additionally, if the Regex parameter is provided, the Identity parameter is treated as a regular expression and any site collection with a URL provided in the given scope that matches the expression is returned.

The Filter parameter is a server-side filter for certain site collection properties that are stored in the content database; without the Filter parameter, filtering on these properties is a slow process. These site collection properties are Owner, SecondaryOwner, and LockState. The Filter parameter is a script block that uses the same syntax as a Where-Object statement, but is run on the server for faster results.

Valid values for LockState are: Unlock, NoAdditions, ReadOnly, NoAccess.

It is important to note that every site collection that the Get-SPSite cmdlet returns is automatically destroyed at the end of the pipeline. To store the results of Get-SPSite in a local variable, use the Start-SPAssignment and Stop-SPAssignment cmdlets to avoid memory leaks.

  • U mentioned 'site collections to which they might not have access.' for Get-SPSiteAdministration. So for Get-SPSite, site collections will not be returned to which he has no access. right? May 30, 2016 at 9:56
  • If you need them than you need to pass some filter parameter with proper authentication.
    – Hardik
    May 30, 2016 at 10:03
  • Get-SPSiteAdministrator will get you them by default
    – Hardik
    May 30, 2016 at 10:05
  • one more thing, i want to compare the memory size of the PSObject returned by these cmdlets. which will be lesser? May 30, 2016 at 10:07
  • Have you read this in above answer?....The Filter parameter is a script block that uses the same syntax as a Where-Object statement, but is run on the server for faster results.
    – Hardik
    May 30, 2016 at 10:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.