Step 3 – Prepare a PAM server
Install Windows Server 2016 or 2019
On a third virtual machine, install Windows Server 2016 or 2019, to make PAMSRV. Since SQL Server MIM Service, and optionally SharePoint 2013, will be installed on this computer, it requires at least 8 GB of RAM.
When installing, specify Windows Server 2016 (Server with Desktop Experience).
Review and accept the license terms.
Select Custom: Install Windows only and use the uninitialized disk space, since the disk will be empty.
Log in to that new computer as its administrator. Using Control Panel, give it a static IP address on the virtual network, configure that network interface to send DNS queries to the IP address of PRIVDC and set the computer name to PAMSRV. This will require a server restart.
If the virtual network doesn't provide Internet connectivity, add an additional network interface to the computer that provides a connection to the Internet. This will be only needed to download updates and for the SharePoint installation, and can be disabled after this step is completed.
Wait for the server to restart. After the server has restarted, sign in as the administrator. Using Control Panel, configure the computer to check for updates, and install any updates needed. This may require a server restart.
Wait for the server to restart. After the server restarts, sign in as Administrator, open the Control Panel and join PAMSRV to the PRIV domain (priv.contoso.local). This will require providing the username and credentials of a PRIV domain administrator (PRIV\Administrator). After the welcome message appears, close the dialog box and restart this server.
Add the web server (IIS) and application server roles
Add the Web Server (IIS) role, the .NET Framework 3.5 and 4.6 Features, and the Active Directory module for Windows PowerShell. If you plan to install SharePoint, also add other features required by SharePoint.
Sign in as a PRIV domain administrator (PRIV\Administrator) and launch PowerShell.
Type the following commands. Note that it may be necessary to specify a different location for the source files for .NET Framework 3.5 features. These features are typically not present when Windows Server installs, but are available in the side-by-side (SxS) folder on the OS install disk sources folder, for example,
d:\Sources\SxS\
.import-module ServerManager Install-WindowsFeature Web-WebServer, Net-Framework-Features, rsat-ad-powershell,Web-Mgmt-Tools, Windows-Identity-Foundation,Server-Media-Foundation, Xps-Viewer –includeallsubfeature -restart -source d:\sources\SxS
Configure the server security policy
Configure the server security policy to allow the newly created accounts to run as services.
Launch the Local Security Policy program.
Navigate to Local Policies > User Rights Assignment.
View the details pane, right-click on Log on as a service, and select Properties.
Click Add User or Group, and in the User and group names, type priv\mimmonitor; priv\MIMService; priv\SharePoint; priv\mimcomponent; priv\SqlServer. Click Check Names, and click OK.
Select OK to close the properties window.
View the details pane, right-click on Deny access to this computer from the network, and select Properties.
Click Add User or Group, and in the User and group names, type priv\mimmonitor; priv\MIMService; priv\mimcomponent and click OK.
Select OK to close the properties window.
View the details pane, right-click on Deny log on locally, and select Properties.
Click Add User or Group, and in the User and group names, type priv\mimmonitor; priv\MIMService; priv\mimcomponent and click OK.
Select OK to close the properties window.
Close the Local Security Policy window.
Launch Control Panel and switch to User Accounts.
Click Give others access to this computer.
Click Add, enter the user MIMADMIN in the domain PRIV, and on the next screen in the wizard, click Add this user as an Administrator.
Click Add, enter the user SharePoint in the domain PRIV, and on the next screen in the wizard, click Add this user as an Administrator.
Close Control Panel.
Change the IIS configuration
There are two ways to change the IIS configuration to allow applications to use Windows Authentication mode. Make sure you're signed in as MIMAdmin and then follow one of these options.
If you want to use PowerShell:
Right-click on PowerShell and select Run as administrator.
Stop IIS and unlock the application host settings using these commands.
iisreset /STOP C:\Windows\System32\inetsrv\appcmd.exe unlock config /section:windowsAuthentication -commit:apphost iisreset /START
If you want to use a text editor such as Notepad:
- Open the file C:\Windows\System32\inetsrv\config\applicationHost.config.
- Scroll down to line 82 of that file. The tag value of overrideModeDefault should be
<section name="windowsAuthentication" overrideModeDefault="Deny" />
. - Change the value of overrideModeDefault to Allow.
- Save the file, and restart IIS with the PowerShell command
iisreset /START
.
Install prerequisite libraries
Install the Visual C++ 2013 Redistributable Packages for Windows Server 64-bit.
If using TLS 1.2 or FIPS mode in the PRIV domain, then see MIM 2016 SP2 in "TLS 1.2 only" or FIPS-mode environments for more prerequisites.
Install SQL Server
If SQL Server is not in the bastion environment already, install either SQL Server 2012 (Service Pack 1 or later), SQL Server 2014 or later. The following steps assume SQL 2014.
- Make sure you are signed in as MIMAdmin.
- Right-click on PowerShell and select Run as administrator.
- Navigate to the directory where the SQL Server setup program is located.
- Type the following command.
.\setup.exe /Q /IACCEPTSQLSERVERLICENSETERMS /ACTION=install /FEATURES=SQL,SSMS /INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT="PRIV\SqlServer" /SQLSVCPASSWORD="Pass@word1" /AGTSVCSTARTUPTYPE=Automatic /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /SQLSYSADMINACCOUNTS="PRIV\MIMAdmin"
Change update settings
- Open Settings, and navigate to Windows Update.
- Check for new updates and make sure any pending important updates for Windows Server or SQL Server are installed before continuing.
Install SharePoint Server 2016 or 2019 (only required for MIM Portal)
The following sections in this article are prerequisites only needed if installing the MIM Portal. If you are not going to be installing MIM Portal, then continue with Step 4 to install the MIM other components.
Use the guide for Preparing Sharepoint to install SharePoint Server 2016 or 2019.
Set the website as the local intranet
- Launch Internet Explorer and open a new web browser tab.
- Navigate to
http://pamsrv.priv.contoso.local:82/
and sign in as PRIV\MIMAdmin. An empty SharePoint site named "MIM Portal" will be shown. - In Internet Explorer open Internet Options, change to the Security tab, select Local intranet, and add the URL
http://pamsrv.priv.contoso.local:82/
.
If sign in fails, the Kerberos SPNs created earlier in Step 2 might need to be updated.
Start the SharePoint administration service
Using Services (located in Administrative Tools), start the SharePoint Administration service, if not already running.
In Step 4, you'll start installing the MIM components onto the PAM server.