SwissChecklist

Checklist: SharePoint Server 2013 Multi Tenancy - Einrichtung MySites

Dokumentiert, wie MySites auf einem SharePoint Server 2013 Mandantenfähig (Multitenancy) eingerichtet wird.
  • Voraussetzungen prüfen

    Show Details Show Substeps Show Substeps Show Substeps
  • SharePoint Server 2013 ist installiert mit aktuellen Software Patches.

    Show Details Show Substeps Show Substeps Show Substeps
  • Die SharePoint Farm Konfiguration ist gemacht analog harbar.net

    Show Details Show Substeps Show Substeps Show Substeps
  • Es gibt eine Web Applikation in der alle Mandanten gehosted werden

    Show Details Show Substeps Show Substeps Show Substeps
    1 Mandant entspricht einer SPSiteSubscription
  • Es sollten Host-Named Site Collections verwendet werden

    Show Details Show Substeps Show Substeps Show Substeps
    Eigene Domain statt http://server/mandant1 etc.
  • Managed Paths der Web Applikation existieren

    Show Details Show Substeps Show Substeps Show Substeps
    New-SPManagedPath "mysites" -HostHeader -Explicit #mysite host
    New-SPManagedPath "mysites/personal" -HostHeader #mysites
  • Es existiert noch keine Service Applikationen vom Typ "User Profile Service Applikation"

    Show Details Show Substeps Show Substeps Show Substeps
  • Wenn Site-Subscription FeaturePacks verwendet werden, sind diese bereits erstellt

    Show Details Show Substeps Show Substeps Show Substeps
    Gemäss
    Create Feature Packs for SharePoint SKUs (SharePoint 2010)
    bzw.
    Feature Packs für SharePoint 2013 mit PowerShell erstellen (SharePoint 2013)
  • User Profile Service Applikation erstellen im PartitionMode

    Show Details Show Substeps Show Substeps Show Substeps
    Basierend auf Creating Partitioned Service Applications Absatz User Profile.
  • PowerShell ausführen zum Erstellen der „User Profile Service Application“ mit Proxy, sowie starten der Service Instanz auf dem lokalen Server

    Show Details Show Substeps Show Substeps Show Substeps
    $saAppPoolName = "SharePoint Web Services Default"

    $upaInstanceName = "User Profile Service"
    $upsInstanceName = "User Profile Synchronization Service"
    $upaName = "Hosting Farm Tenant User Profile Service"
    $upaProfileDBName = "HostingFarm_Profile"
    $upaSocialDBName = "HostingFarm_Social"
    $upaSyncDBName = "HostingFarm_Sync"

    $upa = New-SPProfileServiceApplication -PartitionMode -Name $upaName -ApplicationPool $saAppPoolName -ProfileDBName $upaProfileDBName -SocialDBName $upaSocialDBName -ProfileSyncDBName $upaSyncDBName
    New-SPProfileServiceApplicationProxy -PartitionMode -Name "$upaName Proxy" -ServiceApplication $upa -DefaultProxyGroup
    Get-SPServiceInstance | where-object {$_.TypeName -eq $upaInstanceName} | Start-SPServiceInstance
  • DB Default Schema für Farm Account korrigieren (Software Bug)

    Show Details Show Substeps Show Substeps Show Substeps
    Details: Avoiding the Default Schema issue when creating the User Profile Service Application using Windows PowerShell


    use [HostingFarm_Sync]
    ALTER USER [SHAREPOINT\spfarm] WITH DEFAULT_SCHEMA=dbo
  • Farm Account zu Local Computer Administrators hinzufügen

    Show Details Show Substeps Show Substeps Show Substeps
    Diese Berechtigung ist temporär notwendig.
    Ansonsten schlägt der Provisioning-Prozess fehl (wechselt in Disabled-Status)
  • PowerShell ausführen zum Starten der "User Profile Service Application" und Provisioning

    Show Details Show Substeps Show Substeps Show Substeps
    Wichtig: Auf den ersten Zeilen Benutzername und Passwort einfügen!

    <# we need these to start the UPS Service Instance, UPS doens't do managed accounts, and yes the password is in clear text #>
    $farmAccount = "SHAREPOINT\spfarm"
    $farmPassword = "Password1"

    <# UPA/S specifics #>
    $upsInstanceName = "User Profile Synchronization Service"
    $upaName = "Hosting Farm Tenant User Profile Service"


    $a = Read-Host "Have you fixed the default schema of the Farm Account on the SyncDB?"
    $a = Read-Host "Have you added the Farm Account as a local administrator?"

    Write-Host "Restarting SPTimerV4..."
    restart-service SPTimerV4

    Write-Host "Starting the $upsInstanceName Instance..."
    $upa = Get-SPServiceApplication | where-object {$_.Name -eq $upaName}
    Get-SPServiceInstance | where-object {$_.TypeName -eq $upsInstanceName} | % {
        $_.Status = [Microsoft.SharePoint.Administration.SPObjectStatus]::Provisioning
        $_.IsProvisioned = $false
        $_.UserProfileApplicationGuid = $upa.Id
        $_.Update()
        $upa.SetSynchronizationMachine($_.Server.Address, $_.Id, $farmAccount, $farmPassword) # this causes update conflicts
        Start-SPServiceInstance $_
    }


    Write-Host "Waiting on $upsInstanceName to provision... We could be some time... Make a cuppa, listen to Run like Hell..."
    Write-Host "Baseline time is 270 seconds"
    [int]$time = 0
    $ups = Get-SPServiceInstance | where-object {$_.TypeName -eq $upsInstanceName}
    while(-not ($ups.Status -eq "Online")){
        sleep 10;
        Write-Host "Still waiting... ($time seconds elapsed)"
        $ups = Get-SPServiceInstance | where-object {$_.TypeName -eq $upsInstanceName}
        $time = $time + 10
      }
    Write-Host "$upsInstanceName provisioned, it took $time seconds, resetting IIS..."
    iisreset
    Write-Host "Done!"
    Write-Host "Don't forget to remove the Farm Account from local admins!"
    Write-Host "Tenant Farm Created!"
  • Farm Account aus Local Computer Administrators entfernen

    Show Details Show Substeps Show Substeps Show Substeps
  • Tenant einrichten

    Show Details Show Substeps Show Substeps Show Substeps
    Gemäss http://www.harbar.net/archive/2010/09/14/sp2010mt6.aspx|Provisioning Tenants
  • Dem User, welcher das PowerShell Script ausführt auf der User Profile Application Full-Control Permissions geben

    Show Details Show Substeps Show Substeps Show Substeps
    Sonst tritt dieser Fehler auf:
    UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have ...
  • ProvisionTenant ausführen

    Show Details Show Substeps Show Substeps Show Substeps
  • New Step

    Show Details Show Substeps Show Substeps Show Substeps
Use this Checklist

Preview/Print

Use

Change

Sort

Sharepoint-Checklists sponsored by
Sharepoint 2010 Hosting Switzerland!