none
Display name udpate issue RRS feed

  • Question

  • Hello All,

    When I try to update the display name for few site collections for one user I am getting the below error with the cmdlet

    Set-SPUser -Identity `i:0#.w|domain\username' -DisplayName 'new displayname' -Web "site colln. url"

    But the same command working for few other site collections for the same user. Not able to figure out the exact issue.  Please advise.

    Set-SPUser : You must specify a valid user object or user identity.
    At line:1 char:1
    + Set-SPUser -Identity `i:0#.w|domain\username' -DisplayName `new displayname' -W ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Set-SPUser], PSArgumentException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletSetUser

    Regards,

    Kumar

    Thursday, April 27, 2017 6:51 AM

All replies