About 69 results
Open links in new tab
  1. Multiple -and -or in PowerShell Where-Object statement

    77 By wrapping your comparisons in {} in your first example you are creating ScriptBlocks; so the PowerShell interpreter views it as Where-Object { <ScriptBlock> -and <ScriptBlock> }. Since the -and …

  2. Filtering output using "Where-Object" in Powershell

    Feb 11, 2016 · I'm trying to get into PowerShell and have encountered my first hurdle. when I run Get-Command | Where-Object CommandType -contains Cmdlet My output gets filtered so that only …

  3. powershell - Where-Object, Select-Object and ForEach-object ...

    Jun 4, 2019 · Where-Object, Select-Object and ForEach-Object I am a PowerShell beginner. I don't understand too much. Can someone give examples to illustrate the differences and usage scenarios …

  4. Proper use of Where-Object - PowerShell Forums

    Sep 4, 2023 · PowerShell Help 14 536 May 16, 2024 Confusion on - filter vs -property vs select-object PowerShell Help 7 427 May 16, 2024 Blank output when trying to use Where-Object and Select …

  5. How to use Powershell Where-Object like an IN statement

    How to use Powershell Where-Object like an IN statement Asked 14 years, 7 months ago Modified 4 years, 1 month ago Viewed 28k times

  6. PowerShell Where-Object $_.name -like -in $list - Stack Overflow

    Jun 16, 2015 · PowerShell Where-Object $_.name -like -in $list Asked 10 years, 9 months ago Modified 7 years, 3 months ago Viewed 63k times

  7. Where-object $_ matches multiple criterias - Stack Overflow

    Where-object $_ matches multiple criterias Ask Question Asked 11 years, 10 months ago Modified 7 years, 4 months ago

  8. How can I force Powershell to return an array when a call only returns ...

    Jun 20, 2012 · How can I either force Powershell to return a one-element collection, or alternatively determine whether the returned "thing" is an object rather than a collection?

  9. How to use where-object within foreach loop - PowerShell Forums

    Aug 11, 2021 · learn.microsoft.com Where-Object (Microsoft.PowerShell.Core) - PowerShell The Where-Object cmdlet selects objects that have particular property values from the collection of …

  10. powershell - Get first value after Where-Object condition - Stack …

    Give the following command how to get only the first value after the where condition?