Install-windowsfeature ((full))

Windows Server uses a "Features on Demand" model to save disk space. If a server does not have the necessary installation files in its local side-by-side (WinSxS) store, Install-WindowsFeature will attempt to download them from Windows Update.

-IncludeAllSubFeature: Many roles, such as Web-Server or File-Services, have numerous nested child features. This parameter installs every available sub-component, ensuring the role is fully featured without needing to list every sub-item manually. install-windowsfeature

The true power of Install-WindowsFeature lies in automation. Because it is a PowerShell cmdlet, it can be integrated into configuration scripts or used with Desired State Configuration (DSC). Administrators can create a list of required features in a text file and use a simple loop to ensure a new server is configured to company standards in minutes. Windows Server uses a "Features on Demand" model

-IncludeManagementTools: This is a critical parameter. By default, Install-WindowsFeature often installs the service but not the GUI management consoles. Adding this flag ensures that tools like the IIS Manager or AD Users and Computers are installed alongside the role. Administrators can create a list of required features

Before installing, it is best practice to verify the exact name of the feature needed. The Get-WindowsFeature cmdlet provides a full list of available, removed, and installed features. Filtering this list helps identify the correct string for the -Name parameter: Get-WindowsFeature -Name web