I bet I have written this up ten times, I am sick of needing to remember it.
Windows 10:
Get-WindowsCapability -Name RSAT* -Online | where State -EQ NotPresent | Add-WindowsCapability –Online
Windows 11:
Get-WindowsCapability -Name RSAT* -Online | Where-Object { $_.State -eq 'NotPresent' } | ForEach-Object { Add-WindowsCapability -Online -Name $_.Name }
No comments:
Post a Comment