Installing SharePoint Server Subscription Edition on Windows Server Core
APPLIES TO: 2013 2016 2019 Subscription Edition SharePoint in Microsoft 365
Compared to classic Windows Server with Desktop Experience, Windows Server Core is a leaner deployment mode for SharePoint Server Subscription Edition as server core minimizes the number of OS features and services that are installed and running only those that are truly needed for a server. This deployment option reduces the demand on system resources (CPU, RAM, and disk space) and the potential attack surface for security vulnerabilities. Microsoft encourages Windows Server customers to move to this installation option as and when feasible for better support.
Perform the following steps to install SharePoint Server Subscription Edition on Windows Server Core:
Mount the ISO file to your server by using the
Mount-DiskImage
cmdlet, or by specifying it as a virtual drive in your virtual machine manager.Mount-DiskImage -ImagePath "C:\SharePoint Files\OfficeServer.iso"
Run the SharePoint prerequisite installer (
prerequisiteinstaller.exe
) on your server.Copy the \Files\SetupSilent\config.xml file from your mounted ISO disk image to a writable location.
Copy-Item -Path "D:\Files\SetupSilent\config.xml" -Destination "C:\SharePoint Files"
If the
config.xml
file in your writable location has a read-only file attribute, remove it.Set-ItemProperty -Path "C:\SharePoint Files\config.xml" -Name IsReadOnly -Value $false
Open the
config.xml
file in your writable location for editing.notepad.exe "C:\SharePoint Files\config.xml"
Find and remove the
<!--
and-->
text strings within the file. Don't remove the text in between these two text strings.Replace the Enter Product Key Here text string in the file with your SharePoint Server product key.
Save your changes to the
config.xml
file.Run SharePoint setup (
setup.exe
) on your server in command-line mode. Add the following command-line parameters when launchingsetup.exe
:/config <config file>
(Where<config file>
is the path to your writableconfig.xml
file)/IAcceptTheLicenseTerms
(Specifying this parameter signifies that you have read, understand, and agree to the license terms of SharePoint Server and Project Server.)
D:\setup.exe /config "C:\SharePoint Files\config.xml" /IAcceptTheLicenseTerms
Once SharePoint setup has completed, reboot your server.
Run the following SharePoint PowerShell cmdlets with their appropriate parameters to create or join a farm.
New-SPConfigurationDatabase
to create a farm orConnect-SPConfigurationDatabase
to join a farm.Update-SPFlightsConfigFile -FilePath "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\CONFIG\SPFlightRawConfig.json"
Install-SPHelpCollection -All
Initialize-SPResourceSecurity
Install-SPService
Install-SPFeature -AllExistingFeatures
New-SPCentralAdministration
Install-SPApplicationContent
Note
You can also use the
PSCONFIG.EXE
command line tool or thePSConfigUI.exe
GUI tool. However,PSConfigUI.exe
will crash on Windows Server Core if it needs to display a summary of error messages at the end of the sequence due to a dependency on HTML rendering components.Configure the service applications and web applications in your farm through the Farm Configuration Wizard.
Note
You must use a web browser from another computer to access the Central Administration website. Windows Server Core does not include a web browser.