Installing MIM on SharePoint 2016

The online docs don’t exactly get it right when it comes to installing MIM on SharePoint 2016, the compatibility is set for SharePoint2010 that was the level FIM supported. However this isn’t available in SharePoint 2016 and moreover its not needed as MIM supports it out of the box. I also like to specify my databases on the command line so I can make them all uniform. Here is the config I use:

So run the normal SharePoint 2016 install but don’t run the config wizard after instead run these commands:

psconfig.exe -cmd configdb -create -server fim-sql -database SharePoint_central_config -user domain\mimsp -password mypassword -passphrase mypassphrase -admincontentdatabase SharePoint_admin_content -localserverrole SingleServerFarm

So I have specified the database and the server role makes things a little tidier, also always use a SQL alias this is a ninja technique and will make life so much easier in a DR or server move situation.

Now we create the MIM portal site:

new-spmanagedaccount

You may not need the above command if you are using the same account as specified in the initial command as that puts it’s a farm admin.

The online install docs assume you are installing on SP2013 so don’t mention you have to change compatibility level to 15, any less than 15 won’t work.



$dbManagedAccount = Get-SPManagedAccount -Identity domain\mimsp
New-SpWebApplication -Name "MIM Portal" -ApplicationPool "MIMAppPool" -ApplicationPoolAccount $dbManagedAccount -AuthenticationMethod "Kerberos" -Port 80 -URL http://mim.mimninja.com -DatabaseName SharePoint_WSS_Content -DatabaseServer fim-sql
$t = Get-SPWebTemplate -compatibilityLevel 15 -Identity "STS#1"
$w = Get-SPWebApplication http://mim.mimninja.com
New-SPSite -Url $w.Url -Template $t -OwnerAlias domain\fimsp -CompatibilityLevel 15 -Name "MIM Portal" -SecondaryOwnerAlias domain\fimsync
$s = SpSite($w.Url)
 
These commands are NOT needed as we are using the correct Compatibility Level.

$s.AllowSelfServiceUpgrade = $false
$s.CompatibilityLevel

Then continue as normal


$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService;
$contentService.ViewStateOnServer = $false;
$contentService.Update();

That’s it for just creating the sites there are a few more gotchas that I will put up soon…..

6 Replies to “Installing MIM on SharePoint 2016”

  1. we want to install multiple sharepoint server 2016 for loand balancing. on sharepoint server role which one I need to select ?

    Please help!

    Thanks,
    Shashidhar

  2. Hello, thank you for putting this together!! What are some of those gotchas you mentioned? Something to do with the user profile service app? I’m getting errors about that when trying to install MIM on a new installed sharepoint instance.

    Thank you!!

  3. Sorry guys I can’t exactly remember what they are now and I have installed it a couple of times since….there are some sharepoint services that could do with disabling, they wont stop your solution from working but they log errors to the event log……..If I think of anymore I will post if anyone still wants more information post back apologies hadn’t checked the site in a while!

Leave a Reply

Your email address will not be published. Required fields are marked *

WordPress Appliance - Powered by TurnKey Linux