The below power shell script will change the display name of SHAREPOINT\system.
Recently we migrated one web application from MOSS 2007 to SharePoint 2013 and we realize the SHAREPOINT\system display name is configured with one associate name who administer the MOSS 2007 environment. Using the below we changed the display name from Associate name to SYSTEM ACCOUNT
For
changing the display name of SharePoint\System
## get the default web app
$web = Get-SPWeb http://shivashankaran/sites/2007to2013
## 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" }
## if executing this command executing from ps1 file then the below will write
the list name where the account available
write-host $i
## update to a friendly name
$i["Title"] = "SYSTEM ACCOUNT"
## update e-mail address
$i["Work e-mail"] = "shivashankaran.sc@scs.com"
## update the item
$i.Update()
Thanks & Regards.
No comments:
Post a Comment