Overview

In Windows Server, the Server Manager console and Windows PowerShell cmdlets for Server Manager allow installation of roles and features to local or remote servers. You can install multiple roles and features on a local or remote server as well as on offline VHD in a single add Roles and Features Wizard or Windows PowerShell session.

Features

To show all windows feature that availabe to be installed, you can use this command:

Get-WindowsFeature

You will see the features status which’s available or not.

Here is all roles and features can be installed.

AD-Certificate
    ADCS-Cert-Authority
    ADCS-Enroll-Web-Pol
    ADCS-Enroll-Web-Svc
    ADCS-Web-Enrollment
    ADCS-Device-Enrollment
    ADCS-Online-Cert
AD-Domain-Services
ADFS-Federation
ADLDS
ADRMS
    ADRMS-Server
    ADRMS-Identity
DeviceHealthAttestationService
DHCP
DNS
Fax
FileAndStorage-Services
File-Services
    FS-FileServer
    FS-BranchCache
    FS-Data-Deduplication
    FS-DFS-Namespace
    FS-DFS-Replication
    FS-Resource-Manager
    FS-VSS-Agent
    FS-iSCSITarget-Server
iSCSITarget-VSS-VDS
FS-NFS-Service
FS-SyncShareService
Storage-Services
HostGuardianServiceRole
Hyper-V
NPAS
Print-Services
Print-Server
Print-Internet
Print-LPD-Service
RemoteAccess
DirectAccess-VPN
Routing
Web-Application-Proxy
Remote-Desktop-Services
    RDS-Connection-Broker
    RDS-Gateway
    RDS-Licensing
    RDS-RD-Server
    RDS-Virtualization
    RDS-Web-Access
VolumeActivation
Web-Server
    Web-WebServer
    Web-Common-Http
    Web-Default-Doc
    Web-Dir-Browsing
    Web-Http-Errors
    Web-Static-Content
    Web-Http-Redirect
    Web-DAV-Publishing
    Web-Health
    Web-Http-Logging
    Web-Custom-Logging
    Web-Log-Libraries
    Web-ODBC-Logging
    Web-Request-Monitor
    Web-Http-Tracing
        Web-Performance
        Web-Stat-Compression
        Web-Dyn-Compression
        Web-Security
        Web-Filtering
        Web-Basic-Auth
        Web-CertProvider
        Web-Client-Auth
        Web-Digest-Auth
        Web-Cert-Auth
Web-IP-Security
Web-Url-Auth
Web-Windows-Auth
Web-App-Dev
Web-Net-Ext
Web-Net-Ext45
Web-AppInit
Web-ASP
Web-Asp-Net
Web-Asp-Net45
Web-CGI
Web-ISAPI-Ext
Web-ISAPI-Filter
Web-Includes
Web-WebSockets
Web-Ftp-Server
Web-Ftp-Service
Web-Ftp-Ext
Web-Mgmt-Tools
Web-Mgmt-Console
Web-Mgmt-Compat
Web-Metabase
Web-Lgcy-Mgmt-Console
Web-Lgcy-Scripting
Web-WMI
Web-Scripting-Tools
Web-Mgmt-Service
WDS
WDS-Deployment
WDS-Transport
UpdateServices
UpdateServices-WidDB
UpdateServices-Services
UpdateServices-DB
NET-Framework-Features
NET-Framework-Core
NET-HTTP-Activation
NET-Non-HTTP-Activ
NET-Framework-45-Features
NET-Framework-45-Core
NET-Framework-45-ASPNET
NET-WCF-Services45
NET-WCF-HTTP-Activation45
NET-WCF-MSMQ-Activation45
NET-WCF-Pipe-Activation45
NET-WCF-TCP-Activation45
NET-WCF-TCP-PortSharing45
AzureArcSetup
BITS
BITS-IIS-Ext
BITS-Compact-Server
BitLocker
BitLocker-NetworkUnlock
BranchCache
NFS-Client
Containers
Data-Center-Bridging
Direct-Play
EnhancedStorage
Failover-Clustering
GPMC
HostGuardian
DiskIo-QoS
Web-WHC
Internet-Print-Client
IPAM
LPR-Port-Monitor
ManagementOdata
Server-Media-Foundation
MSMQ
MSMQ-Services
MSMQ-Server
MSMQ-Directory
MSMQ-HTTP-Support
MSMQ-Triggers
MSMQ-Multicasting
MSMQ-Routing
MSMQ-DCOM
Windows-Defender
Multipath-IO
MultiPoint-Connector
MultiPoint-Connector-Services
MultiPoint-Tools
NLB
NetworkVirtualization
PNRP
qWave
CMAK
Remote-Assistance
RDC

RSAT
    RSAT-Feature-Tools
    RSAT-SMTP
    RSAT-Feature-Tools-BitLocker
    RSAT-Feature-Tools-BitLocker-RemoteAdminTool
    RSAT-Feature-Tools-BitLocker-BdeAducExt
    RSAT-Bits-Server
    RSAT-DataCenterBridging-LLDP-Tools
    RSAT-Clustering
    RSAT-Clustering-Mgmt
    RSAT-Clustering-PowerShell
    RSAT-Clustering-AutomationServer
    RSAT-Clustering-CmdInterface
    IPAM-Client-Feature
    RSAT-NLB
    RSAT-Shielded-VM-Tools
    RSAT-SNMP
    RSAT-SMS
    RSAT-Storage-Replica
    RSAT-System-Insights
    RSAT-WINS
    RSAT-Role-Tools
    RSAT-AD-Tools
    RSAT-AD-PowerShell
    RSAT-ADDS
    RSAT-AD-AdminCenter
    RSAT-ADDS-Tools
    RSAT-ADLDS
    RSAT-Hyper-V-Tools
Hyper-V-Tools
Hyper-V-PowerShell
RSAT-RDS-Tools
RSAT-RDS-Gateway
RSAT-RDS-Licensing-Diagnosis-UI
RDS-Licensing-UI
UpdateServices-RSAT
UpdateServices-API
UpdateServices-UI
RSAT-ADCS
RSAT-ADCS-Mgmt
RSAT-Online-Responder
RSAT-ADRMS
RSAT-DHCP
RSAT-DNS-Server
RSAT-Fax
RSAT-File-Services
RSAT-DFS-Mgmt-Con
RSAT-FSRM-Mgmt
RSAT-NFS-Admin
RSAT-NetworkController
RSAT-NPAS
RSAT-Print-Services
RSAT-RemoteAccess
RSAT-RemoteAccess-Mgmt
RSAT-RemoteAccess-PowerShell
RSAT-VA-Tools
WDS-AdminPack
RPC-over-HTTP-Proxy
Setup-and-Boot-Event-Collection
Simple-TCPIP
FS-SMB1
FS-SMB1-CLIENT
FS-SMB1-SERVER
FS-SMBBW
SMTP-Server
SNMP-Service
SNMP-WMI-Provider
SMS
SMS-Proxy
Storage-Replica
System-DataArchiver
System-Insights
Telnet-Client
TFTP-Client
FabricShieldedTools
WebDAV-Redirector
Biometric-Framework
Windows-Identity-Foundation
Windows-Internal-Database
PowerShellRoot
PowerShell
PowerShell-V2
DSC-Service
WindowsPowerShellWebAccess
WAS
WAS-Process-Model
WAS-NET-Environment
WAS-Config-APIs
Search-Service
Windows-Server-Backup
Migration
WindowsStorageManagementService
Microsoft-Windows-Subsystem-Linux
Windows-TIFF-IFilter
WinRM-IIS-Ext
WINS
Wireless-Networking
WoW64-Support
XPS-Viewer

Installing

Installing Netframework-45-Core and IIS

Install-WindowsFeature NET-Framework-45-Core, NET-Framework-45-ASPNET, NET-WCF-HTTP-Activation45, NET-WCF-Pipe-Activation45, NET-WCF-TCP-Activation45, NET-WCF-TCP-PortSharing45, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, RSAT-Clustering-PowerShell, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI