Get current superuser/superreader accounts PowerShell One-liner


This one-liner wil show you the currently configured superuser and superreader accounts for each of your Web Applications.Just paste this line of code in your SharePoint 2010 Management Shell:

Get-SPWebApplication | %{Write-Host “Web Application: ” $_.url “`nSuper user: ” $_.properties[“portalsuperuseraccount”] “`nSuper reader: ” $_.properties[“portalsuperreaderaccount”] “`n”}

This is the output for the above command in my test environment:

image

In my case, I have not properly configured the super user accounts for all my Web Applications.

Be aware that misconfigured super user accounts can lead to access problems. You may not be able to access your SharePoint Web Application!

Advertisements

3 thoughts on “Get current superuser/superreader accounts PowerShell One-liner

  1. Pingback: Configure PortalSuperUser & PortalSuperReader in SharePoint 2010 « derby leeds blog

  2. “Be aware that misconfigured super user accounts can lead to access problems. You may not be able to access your SharePoint Web Application!”

    I think I just did this to my farm. Can you elaborate, or point me to another article or fix on this topic? Thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s