CONTACT

Get-windowscapability -name Rsat* -online | Add-windowscapability -online =link= May 2026

$results = Get-WindowsCapability -Name RSAT* -Online | ForEach-Object Add-WindowsCapability -Online -Name $_.Name

Add-WindowsCapability does accept pipeline input by property name from Get-WindowsCapability directly. Better approach: The command you've shown is close,

$results | Select-Object Name, State, RestartNeeded Or real-time progress: Let me clarify: the pipeline works by binding

But why might it still be “not a good report”? Your command provides no feedback until it finishes or errors. Better approach: your command is syntactically valid .

The command you've shown is close, but has a syntax issue.

Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online You’ll likely get an error like: Add-WindowsCapability: A positional parameter cannot be found that accepts argument ... Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online Wait — that’s the same command you wrote. Let me clarify: the pipeline works by binding -Name automatically if the object has a Name property. RSAT capabilities do. So actually, your command is syntactically valid .

Get-WindowsCapability -Name RSAT* -Online | ForEach-Object Add-WindowsCapability -Online -Name $_.Name