Dogodek
29. apr., 14h - 30. apr., 19h
Pridružite se končnemu navideznemu dogodku strežnika Windows Server 29.–30. aprila za tehnične seje z globokim potopom in vprašanjih v živo z Microsoftovimi inženirji.
Prijavite se zdajTa brskalnik ni več podprt.
Izvedite nadgradnjo na Microsoft Edge, če želite izkoristiti vse prednosti najnovejših funkcij, varnostnih posodobitev in tehnične podpore.
The Server Core App Compatibility Feature on Demand (FOD) is an optional feature package that can be added to Server Core installations of Windows Server installations at any time, beginning with Windows Server 2019.
For more information on other Features on Demand, see Features On Demand.
The App Compatibility Feature on Demand for Server Core improves app compatibility by including a subset of binaries and packages from the Server with Desktop Experience installation option. This optional package is available on a separate ISO, or from Windows Update, but can only be added to Server Core installations and images.
The two primary values the App Compatibility FOD provides are:
Operating system components that are available as part of the Server Core App Compatibility FOD include:
Microsoft Management Console (mmc.exe)
Event Viewer (Eventvwr.msc)
Performance Monitor (PerfMon.exe)
Resource Monitor (Resmon.exe)
Device Manager (Devmgmt.msc)
File Explorer (Explorer.exe)
Windows PowerShell (Powershell_ISE.exe)
Disk Management (Diskmgmt.msc)
Failover Cluster Manager (CluAdmin.msc)
Opomba
Failover Cluster Manager requires adding the Failover Clustering Windows Server feature first, which can be done by running the following command from an an elevated PowerShell session:
Install-WindowsFeature -Name Failover-Clustering -IncludeManagementTools
Beginning with Windows Server 2022, the following components are also available (when using the same version of the App Compatibility FOD):
Hyper-V Manager (virtmgmt.msc)
Task Scheduler (taskschd.msc)
Pomembno
If the server can connect to Windows Update, run the following command from an elevated PowerShell session, then restart Windows Server after the command finishes running:
Add-WindowsCapability -Online -Name ServerCore.AppCompatibility~~~~0.0.1.0
If the server can't connect to Windows Update, instead download the Windows Server Languages and Optional Features ISO image file, and copy the ISO to a shared folder on your local network:
Opomba
The Languages and Optional Features ISO image file is new for Windows Server 2022. Previous versions of Windows Server use the Features on Demand (FOD) ISO.
Sign in with an administrator account on the Server Core computer that is connected to your local network and that you want to add the App Compatibility FOD to.
Use New-PSDrive
from PowerShell, net use
from Command Prompt, or some other method, to connect to the location of the FOD ISO. For example, in an elevated PowerShell session run the following command:
$credential = Get-Credential
New-PSDrive -Name FODShare -PSProvider FileSystem -Root "\\server\share" -Credential $credential
Copy the FOD ISO to a local folder of your choosing (the copy operation may take some time). Edit the following variables with your folder location and ISO filename, and run the following commands, for example:
$isoFolder = "C:\SetupFiles\WindowsServer\ISOs"
$fodIsoFilename = "FOD_ISO_filename.iso"
New-Item -ItemType Directory -Path $isoFolder
Copy-Item -Path "FODShare:\$fodIsoFilename" -Destination $isoFolder -Verbose
Mount the FOD ISO by using the following command:
$fodIso = Mount-DiskImage -ImagePath "$isoFolder\$fodIsoFilename"
Run the following command to get the drive letter that the FOD ISO has been mounted to:
$fodDriveLetter = ($fodIso | Get-Volume).DriveLetter
Run the following command (depending on the operating system version):
For Windows Server 2022:
Add-WindowsCapability -Online -Name ServerCore.AppCompatibility~~~~0.0.1.0 -Source ${fodDriveLetter}:\LanguagesAndOptionalFeatures\ -LimitAccess
For previous versions of Windows Server:
Add-WindowsCapability -Online -Name ServerCore.AppCompatibility~~~~0.0.1.0 -Source ${fodDriveLetter}:\ -LimitAccess
After the progress bar completes, restart the operating system.
Opomba
The Server Core App Compatibility FOD is required for the addition of Internet Explorer 11, but Internet Explorer 11 is not required to add the Server Core App Compatibility FOD.
Opomba
Starting with Windows Server 2022, although Internet Explorer 11 can be added to Server Core installations of Windows Server, Microsoft Edge should be used instead. Microsoft Edge has Internet Explorer mode ("IE mode") built in, so you can access legacy Internet Explorer-based websites and applications straight from Microsoft Edge. Please see here for information on the lifecycle policy for Internet Explorer.
Sign in as Administrator on the Server Core computer that already has the App Compatibility FOD added and the FOD optional package ISO copied locally.
Mount the FOD ISO by using the following command. This step assumes that you've already copied the FOD ISO locally. If not, complete steps 1 and 2 from Mount the FOD ISO. The commands follow on from these two steps. Edit the variables with your folder location and ISO filename, and run the following commands, for example:
$isoFolder = "C:\SetupFiles\WindowsServer\ISOs"
$fodIsoFilename = "FOD_ISO_filename.iso"
$fodIso = Mount-DiskImage -ImagePath "$isoFolder\$fodIsoFilename"
Run the following command to get the drive letter that the FOD ISO has been mounted to:
$fodDriveLetter = ($fodIso | Get-Volume).DriveLetter
Run the following commands (depending on your operating system version), using the $packagePath
variable as the path to the Internet Explorer .cab file:
For Windows Server 2022:
$packagePath = "${fodDriveLetter}:\LanguagesAndOptionalFeatures\Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~~.cab"
Add-WindowsPackage -Online -PackagePath $packagePath
For previous versions of Windows Server:
$packagePath = "${fodDriveLetter}:\Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~~.cab"
Add-WindowsPackage -Online -PackagePath $packagePath
After the progress bar completes, restart the operating system.
Pomembno
After installation of the App Compatibility FOD and reboot of the server, the command console window frame color will change to a different shade of blue.
If you choose to also install the Internet Explorer 11 optional package, double-clicking to open locally saved .htm files isn't supported. However, you can right-click and choose Open with Internet Explorer, or you can open it directly from Internet Explorer File -> Open.
To further enhance the app compatibility of Server Core with the App Compatibility FOD, the IIS Management Console has been added to Server Core as an optional component. However, it's necessary to first add the App Compatibility FOD to use the IIS Management Console. IIS Management Console relies on the Microsoft Management Console (mmc.exe), which is only available on Server Core with the addition of the App Compatibility FOD. Use the PowerShell cmdlet Install-WindowsFeature to add IIS Management Console:
Install-WindowsFeature -Name Web-Mgmt-Console
As a general point of guidance, when installing applications on Server Core (with or without these optional packages) it's sometimes necessary to use silent install options and instructions.
Download both the Languages and Optional Features ISO and the Windows Server ISO image files to a local folder on a Windows computer. You can complete these steps on a Windows desktop PC, it doesn't need to be running Windows Server with the Server Core installation option.
Opomba
The Languages and Optional Features ISO image file is new for Windows Server 2022. Previous versions of Windows Server use the Features on Demand (FOD) ISO.
Mount both the Languages and Optional Features ISO and the Windows Server ISO by running the following commands in an elevated PowerShell session. Edit the variables with your folder location and ISO filename, and run the following commands, for example::
$isoFolder = "C:\SetupFiles\WindowsServer\ISOs"
$fodIsoFilename = "FOD_ISO_filename.iso"
$wsIsoFilename = "Windows_Server_ISO_filename.iso"
$fodIso = Mount-DiskImage -ImagePath "$isoFolder\$fodIsoFilename"
$wsIso = Mount-DiskImage -ImagePath "$isoFolder\$wsIsoFilename"
Run the following command to get the drive letters that the FOD ISO and Windows Server ISO have been mounted to:
$fodDriveLetter = ($fodIso | Get-Volume).DriveLetter
$wsDriveLetter = ($wsIso | Get-Volume).DriveLetter
Copy the contents of the Windows Server ISO file to a local folder, for example, C:\SetupFiles\WindowsServer\Files. The copy operation may take some time:
$wsFiles = "C:\SetupFiles\WindowsServer\Files"
New-Item -ItemType Directory -Path $wsFiles
Copy-Item -Path ${wsDriveLetter}:\* -Destination $wsFiles -Recurse
Get the image name you want to modify within the install.wim file by using the following command. Add your path to the install.wim file to the $installWimPath
variable, located inside the sources folder of the Windows Server ISO file. Note the names of the images available in this install.wim file from the output.
$installWimPath = "C:\SetupFiles\WindowsServer\Files\sources\install.wim"
Get-WindowsImage -ImagePath $installWimPath
Mount the install.wim file in a new folder by using the following command replacing the sample variable values with your own, and reusing the $installWimPath
variable from the previous command.
$wimImageName
- Enter the name of the image you want to mount from the output of the previous command. The example here uses Windows Server 2022 Datacenter.$wimMountFolder
- Specify an empty folder to use when accessing the contents of the install.wim file.$wimImageName = "Windows Server 2022 Datacenter"
$wimMountFolder = "C:\SetupFiles\WindowsServer\WIM"
New-Item -ItemType Directory -Path $wimMountFolder
Set-ItemProperty -Path $installWimPath -Name IsReadOnly -Value $false
Mount-WindowsImage -ImagePath $installWimPath -Name $wimImageName -Path $wimMountFolder
Add the capabilities and packages you want to the mounted install.wim image by using the following commands (depending on the version), replacing the sample variable values with your own.
$capabilityName
- Specify the name of the capability to install (in this case, the AppCompatibility capability).$packagePath
- Specify the path to the package to install (in this case, to the Internet Explorer cab file).For Windows Server 2022:
$capabilityName = "ServerCore.AppCompatibility~~~~0.0.1.0"
$packagePath = "${fodDriveLetter}:\LanguagesAndOptionalFeatures\Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~~.cab"
Add-WindowsCapability -Path $wimMountFolder -Name $capabilityName -Source "${fodDriveLetter}:\LanguagesAndOptionalFeatures" -LimitAccess
Add-WindowsPackage -Path $wimMountFolder -PackagePath $packagePath
For previous versions of Windows Server:
$capabilityName = "ServerCore.AppCompatibility~~~~0.0.1.0"
$packagePath = "${fodDriveLetter}:\Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~~.cab"
Add-WindowsCapability -Path $wimMountFolder -Name $capabilityName -Source "${fodDriveLetter}:\" -LimitAccess
Add-WindowsPackage -Path $wimMountFolder -PackagePath $packagePath
Dismount and commit changes to the install.wim file by using the following command, which uses the $wimMountFolder
variable from previous commands:
Dismount-WindowsImage -Path $wimMountFolder -Save
You can now upgrade your server by running setup.exe from the folder you created for the Windows Server installation files, in this example: C:\SetupFiles\WindowsServer\Files. This folder now contains the Windows Server installation files with the extra capabilities and optional packages included.
Dogodek
29. apr., 14h - 30. apr., 19h
Pridružite se končnemu navideznemu dogodku strežnika Windows Server 29.–30. aprila za tehnične seje z globokim potopom in vprašanjih v živo z Microsoftovimi inženirji.
Prijavite se zdajUsposabljanje
Potrdilo
Microsoft 365 Certified: Fundamentals - Certifications
Demonstrate understanding of Microsoft 365, to deliver industry-leading productivity apps along with intelligent cloud services, and world-class security.
Dokumentacija
In Windows Server and Azure Local, you can use the Server Configuration tool (SConfig) to configure and manage several common aspects of server lifecycle. It includes network configuration, Active Directory domain membership, installation of Microsoft updates, and operating system activation
Learn about the Server Core installation option in Windows Server
Server Core vs Server with Desktop Experience install options
Learn the differences between the Server Core and Server with Desktop Experience install options.