To enable the IIS (Internet Information Services) feature on Windows Server 2022 Standard Edition, you can use the following PowerShell command:
Install-WindowsFeature -Name IIS -IncludeManagementTools
This command will install the IIS server role along with the IIS management tools. If you only want to install the IIS server role, you can use the following command:
Install-WindowsFeature -Name IIS
For more information about the Install-WindowsFeature cmdlet, you can refer to the Microsoft documentation.
References:
Additional Resources: