Sharepoint question

I am using the built in sharepoint that comes free with Windows server 2008 R2.
I had a user change your name because she got married. I've made the changes in AD last year, and everything was fine, but the user just asked me why when she logs into sharepoint, it uses her old name.

I tried deleting the user and every time I add the user, even though I use the new format: domainusername
it still reverts back to the old last name.

I searched through AD, and the old name doesn't exist anywhere. How do I resolve this issue?

I'm puzzled.



Try this, line by line
Add-PSSnapin Microsoft.SharePoint.Powershell
$web = Get-SPWeb http://webapp
$user = get-spuser -web $web -identity "Incorrect display name exactly as it is shown in SharePoint"
Set-SPuser -identity $user -web $web -DisplayName "New display name to be set by PowerShell"

User names should be in the format DomainUserName

This is just a band aid for what might be a larger problem, such as UPS not syncing or running.

Hope that helps



Try this, line by line
Add-PSSnapin Microsoft.SharePoint.Powershell
$web = Get-SPWeb http://webapp
$user = get-spuser -web $web -identity "Incorrect display name exactly as it is shown in SharePoint"
Set-SPuser -identity $user -web $web -DisplayName "New display name to be set by PowerShell"

User names should be in the format DomainUserName

This is just a band aid for what might be a larger problem, such as UPS not syncing or running.

Hope that helps



are you saying to run that code on my sharepoint server, right?

I've never worked with powershell, so hopefully that won't brake anything
Just to confirm the format, let me know if this is what I should be entering:
Add-PSSnapin Microsoft.SharePoint.Powershell
$web = Get-SPWeb http://webapp
domainusername = get-spuser -web $web -identity "First name & last name spelled incorrectly"
Set-SPuser -identity domainuser -web $web -DisplayName "First name & last name spelled incorrectly"

where it says http://webapp do I change this to my own http address of my sharepoint?

also, can this break anything? I'll do a backup, but I have no idea how to restore it if it breaks sharepoint



Yes, your address of you SharePoint goes where is says http://webapp
If you have never worked with PowerShell, you might want to read up on it some however before you start.



what is UPS not syncing, so how would I know what the exact problem is, just curious?



since the snapin was already installed, it didn't install it.

Then it the 2nd line fine with no errors

The third line though came back with an error. The picture is attached.

Share this

Related Posts

There was an error in this gadget