Frage

Ich habe Profilbilder aus AD importiert und synchronisiere erfolgreich.Das Problem besteht darin, dass SharePoint das Bild am falschen Ort sucht.

In der Konsole erhalte ich diesen Fehler:

GET http://sis-intranet/sites/mysiteUser%20Photos/Profile%20Pictures/sr_SThumb.jpg?t=63540923150 404 (OK) 

Dies liegt daran, dass der Link vorhanden sein sollte http://sis-intranet/sites/mysite/User%20Photos/nicht http://sis-intranet/sites/mysiteUser%20Photos/

Es fehlt das „/“ nach mysite

Irgendeine Idee, wie man das beheben kann?

War es hilfreich?

Lösung

$site = get-spsite "http://sis-intranet"

#Give URL of a site collection whose web application is associated with this user profile service application 
$context=  [Microsoft.office.server.servercontext]::GetContext($site) 
$userProfileManager = new-object Microsoft.office.server.userprofiles.userprofilemanager($context) 
$profiles = $userProfileManager.GetEnumerator() 
   foreach ($profile in $profiles) 
    { 
    $Matchurl = "http://sis-intranet/sites/mysiteUser%20Photos/" 
    #Provide the incorrect URL for the picture 
     if($profile["pictureurl"].value -match $matchurl) 
        { 

                Write-host $profile["AccountName"].value "contains incorrect url" 
                $CurrentURL = $profile["Pictureurl"].value 
                $CurrentURL = $CurrentURL.tostring() 
                $GoodUrl = "http://sis-intranet/sites/mysite/User%20Photos/" 
                #Provide the correct URL for the picture 
                $CorrectUrl = $CurrentURL.replace($matchurl,$goodurl) 
                $profile["pictureurl"].value = $correcturl 
                $profile.commit() 
                Write-host $profile["AccountName"].value "PictureURL has been corrected" 
       } 
    }

http://blogs.technet.com/b/harmeetw/archive/2012/09/18/sharepoint-2010-profile-pictures-not-showing-up-due-to-incorrect-url.aspx

BEARBEITEN

Ja, es ist nicht dauerhaft!Sie müssen den Benutzerprofildienst neu erstellen, damit er die richtige URL erhält.Woher nimmst du das Bild?Active Directory?Haben Sie sich die Benutzerprofileinstellungen im Active Directory angesehen?_admin/ServiceApplications.aspx Gehen Sie zum Benutzerprofil und klicken Sie unter „Personen“ auf „Benutzereigenschaften verwalten“ -> suchen Sie nach Profilbildern und stellen Sie sicher, dass sie korrekt sind

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit sharepoint.stackexchange
scroll top