Skip to content

Instantly share code, notes, and snippets.

@fowl2
Last active August 23, 2025 23:16
Show Gist options
  • Select an option

  • Save fowl2/34f34f55d160d6a94a1e45ccb44b0935 to your computer and use it in GitHub Desktop.

Select an option

Save fowl2/34f34f55d160d6a94a1e45ccb44b0935 to your computer and use it in GitHub Desktop.
Install all Windows 10 Features on Demand (FOD) from ISO
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