About 41 results
Open links in new tab
  1. Can I get "&&" or "-and" to work in PowerShell? - Stack Overflow

    PowerShell has -and and -or logical operators. Are the operators not working the way you expect them to? If so, you can post the expression here.

  2. about_Operators - PowerShell | Microsoft Learn

    Mar 24, 2026 · 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.

  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. PowerShell Logical Operators [With Examples]

    Aug 1, 2024 · Learn about PowerShell logical operators (-and, -or, -not) and how to use them for efficient scripting. Explore examples and best practices in this guide!

  5. What are the PowerShell equivalents of Bash's && and || operators?

    Mar 22, 2019 · Many years after the question was first asked, let me summarize the behavior of Windows PowerShell, whose latest and final version is v5.1: Bash's / cmd 's && and || control …

  6. PowerShell-Docs/reference/7.6/Microsoft.PowerShell.Core/About

    Starting PowerShell 3.0, when you use the operator on a list collection object that doesn't have the member, PowerShell automatically enumerates the items in that collection and uses the operator on …

  7. PowerShell Operators [Complete Guide] — LazyAdmin

    Aug 22, 2024 · When using PowerShell you can use a wide variety of operators in your script. They can be used in commands or expressions and are used to perform comparisons, define conditions, or …

  8. How to Use -and Operator in PowerShell?

    Jul 25, 2024 · Keep reading to know how to use PowerShell -and Operator, its syntax and various examples of the -and operator in PowerShell.

  9. How to use the AND Operator in PowerShell? - SharePoint Diary

    Sep 20, 2025 · Master the PowerShell AND operator and unlock its full potential. Discover how to combine multiple conditions for more precise scripting.

  10. How to Use Logical Operators (AND / OR / NOT) in PowerShell?

    Oct 7, 2025 · Learn how to use logical operators And, Or, and Not in PowerShell with this comprehensive guide, and simplify your scripting tasks!