PowerShell Where-Object -NotLike Operator

PowerShell Where-Object -NotLike

One of the most useful cmdlets in PowerShell is Where-Object, which allows you to filter objects based on their properties. In this PowerShell tutorial, we will focus on the -NotLike operator used with Where-Object in PowerShell to exclude items that do not match a specified pattern. I will also show a few examples of the … Read more

PowerShell Where-Object Contains Examples

PowerShell Where-Object Contains

PowerShell Where-Object cmdlet allows you to filter objects based on their properties. In this PowerShell tutorial, we will focus on the Contains operator within the Where-Object cmdlet and how you can use it. I will also show you PowerShell Where-Object contains examples. In PowerShell, the Where-Object cmdlet is often used to filter objects based on their properties. To check if … Read more

PowerShell where-object multiple conditions [With 8 Examples]

PowerShell where-object multiple conditions Examples

Do you want to know how to use multiple conditions in PowerShell Where-Object? In this tutorial, I will explain everything with examples of “PowerShell where-object multiple conditions“. PowerShell Where-Object for Multiple Conditions PowerShell Where-Object cmdlet is used in a pipeline to filter out objects that do not match the specified criteria. You can use it … Read more

PowerShell Where-Object in List

PowerShell Where-Object in List

In this PowerShell tutorial, I will explain how to use Where-object in a list in PowerShell. We will see various examples related to “PowerShell Where-Object in List“. In PowerShell, the Where-Object cmdlet is used to filter elements in a list based on specified conditions. For example, to find all items in a list of numbers … Read more

PowerShell Where-Object Between Two Dates

PowerShell Where-Object Between Two Dates

If you want to filter items using Where-Object based on dates, then check out this PowerShell tutorial. To filter objects by date in PowerShell using the Where-Object cmdlet, you can create DateTime objects for your desired date range and use comparison operators to specify the range. For example, to select files modified between two dates, you can use Get-ChildItem | … Read more

PowerShell Where-Object for Null or Empty Values

In PowerShell, you might have to deal with null or empty values. In this PowerShell tutorial, I will explain, how to use Where-Object to work with null and empty values in PowerShell. To filter objects in PowerShell where a property is null or empty, you can use the Where-Object cmdlet with a script block that checks for … Read more

Filter Unique Objects in PowerShell with Where-Object

powershell where-object distinct

Recently, I got a requirement to filter out unique objects from a data collection in PowerShel. PowerShell provides the Where-Object cmdlet to filter unique or distinct objects from a collection. In this PowerShell tutorial, I will explain how to filter unique objects in PowerShell with the Where-Object cmdlet. To filter unique objects in PowerShell, you … Read more

Filter Empty Values Using PowerShell Where-Object Cmdlet

powershell where-object empty

When working with data in PowerShell, it’s common to encounter empty values, such as empty strings, null values, or empty arrays. These can interfere with data processing and may need to be filtered out. PowerShell provides a powerful cmdlet, Where-Object, which can be used to filter objects based on their property values. In this PowerShell … Read more

PowerShell Where-Object vs Filter: In-depth Comparison and Examples

PowerShell Where-Object vs Filter

Two of the most commonly used filtering techniques in PowerShell are Where-Object, and the filter keyword in function definitions. In this PowerShell tutorial, I will explain everything about the PowerShell Where-Object vs Filter. In PowerShell, Where-Object is a cmdlet used for filtering objects based on specified criteria within a pipeline, allowing for complex expressions. On … Read more

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

FREE Download an eBook that contains 100 PowerShell cmdlets with complete script and examples.