About 50 results
Open links in new tab
  1. about_Operators - PowerShell | Microsoft Learn

    Dec 2, 2019 · Long description An operator is a language element that you can use in a command or expression. PowerShell supports several types of operators to help you manipulate values.

  2. about_Comparison_Operators - PowerShell | Microsoft Learn

    Short description The comparison operators in PowerShell can either compare two values or filter elements of a collection against an input value.

  3. about_Logical_Operators - PowerShell | Microsoft Learn

    Jan 7, 2026 · The PowerShell logical operators connect expressions and statements, allowing you to use a single expression to test for multiple conditions. Statements that use the logical operators …

  4. about_Type_Operators - PowerShell | Microsoft Learn

    The Boolean type operators (-is and -isnot) tell whether an object is an instance of a specified .NET type. The -is operator returns a value of TRUE if the type matches and a value of FALSE otherwise.

  5. about_Assignment_Operators - PowerShell | Microsoft Learn

    PowerShell also has the following compound assignment operators: +=, -=, *=, %=, ++, --, ??=. Compound assignment operators perform operations on the values before the assignment.

  6. about_Operator_Precedence - PowerShell | Microsoft Learn

    Jan 7, 2026 · Long description PowerShell operators let you construct simple, but powerful expressions. This topic lists the operators in precedence order. Precedence order is the order in which PowerShell …

  7. Where-Object (Microsoft.PowerShell.Core) - PowerShell

    To enable the simiplified syntax, Where-Object includes 31 switch parameters that represent the comparison operators. The simplified syntax is easier to read and write than the script block syntax.

  8. about_Arithmetic_Operators - PowerShell | Microsoft Learn

    The addition operator concatenates the input. The multiplication operator returns multiple copies of the input. You can even mix object types in an arithmetic statement. The method that's used to evaluate …

  9. about_Redirection - PowerShell | Microsoft Learn

    Use the PowerShell redirection operators. Redirecting the output of a PowerShell command (cmdlet, function, script) using the redirection operator (>) is functionally equivalent to piping to Out-File with …

  10. Everything you wanted to know about the if statement - PowerShell

    Dec 18, 2023 · PowerShell has special operators for different comparison scenarios. When you use a comparison operator, the value on the left-hand side is compared to the value on the right-hand side.