PowerShell - Cmdlets and Pipeline
Which of these commands correctly uses the pipeline to filter services that are running?
Where-Object with a condition.Get-Service output to Where-Object. Get-Service Where-Object { $_.Status -eq 'Running' } misses the pipeline operator. Get-Service -Status Running uses a wrong parameter. Get-Service | Sort-Object Status sorts instead of filters.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions