Last active
August 23, 2025 23:16
-
-
Save fowl2/34f34f55d160d6a94a1e45ccb44b0935 to your computer and use it in GitHub Desktop.
Install all Windows 10 Features on Demand (FOD) from ISO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-WindowsCapability -Online -LimitAccess ` | |
| | where { $_.Name -like 'rsat*' -and $_.State -eq 'NotPresent' } ` | |
| | Add-WindowsCapability -Online -LimitAccess -Verbose -Source e: | |
| # step 1. mount (double click) the ISO | |
| # step 2. run this powershell as admin. Change e: to the right drive letter | |
| , (Get-WindowsCapability -Online -LimitAccess | where { $_.Name -like 'rsat*' -and $_.State -eq 'NotPresent' }) ` | |
| | % { $c = $_.Length; $_ ` | |
| | % {$i=0}{$i++; "$i / $c : $($_.Name)" | out-host; $_ } ` | |
| | Add-WindowsCapability -Online -LimitAccess -Source e: ` | |
| | ? RestartNeeded | select -last 1 ` | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment