Update ‘System Account’ user information on a stand alone SharePoint installation

If you’ve ever installed SharePoint in a stand alone SharePoint configuration, e.g. on a development machine on Windows 7, you’ll have noticed the user properties drop down by default shows ‘System Account’ as the current logged on user:

image

Although this does not cause any problems with the operation of SharePoint in a stand-alone install, when demonstrating SharePoint this can sometimes require explanation to the audience why System Account is displayed. It is actually displayed because the current user is logged on with the account used by the SharePoint app pool.

To change the display name show on the user properties drop down to something more friendly is easy with PowerShell:

## Load the SharePoint Snapin so the script can be executed from PowerShell editor
Add-PSSnapin Microsoft.SharePoint.PowerShell –erroraction SilentlyContinue

## get the default web app
$web = Get-SPWeb http://bc01

## get the user info list
$l = $web.Lists | where { $_.Title -eq "User Information List" }

## get the system account item
$i = $l.Items | where { $_["Account"] -eq "SHAREPOINT\system" }

## update to a friendly name
$i["Title"] = "Brian Cartmel"

## update e-mail address
$i["Work e-mail"] = "your.email@your.domain.com"

## update the item
$i.Update()

This results in the above being shown…

image

…and the following being updated in the into the (hidden) User Information list:

image

I hope this helps.

Advertisements

One Response to Update ‘System Account’ user information on a stand alone SharePoint installation

  1. Hi Brian,

    Great post & blog. I have referenced this post in my blog. http://blog.sharepointsite.co.uk/2012/02/status-indicator-not-working.html

    thanks
    Paul Beck

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

%d bloggers like this: