About 4,230,000 results
Open links in new tab
  1. syntax - What does the "@" symbol do in PowerShell? - Stack Overflow

    Dec 12, 2008 · I've seen the @ symbol used in PowerShell to initialise arrays. What exactly does the @ symbol denote and where can I read more about it?

  2. powershell - How to effectively use the `-Filter` parameter on Active ...

    Note about Azure AD cmdlets This answer is crafted around the Active Directory cmdlets installed and available from Remote Server Administration Tools (RSAT). However, the Azure AD cmdlets make …

  3. Can I get "&&" or "-and" to work in PowerShell? - Stack Overflow

    The quickest way to real frustration when learning PowerShell is to start by thinking that it is just an expanded CMD or bash. It has a fundamentally different model, epecially when it comes to input, …

  4. syntax - What does "%" (percent) do in PowerShell? - Stack Overflow

    What does "%" (percent) do in PowerShell? Asked 11 years, 8 months ago Modified 5 years, 10 months ago Viewed 128k times

  5. How can I automatically syntax check a powershell script file?

    I want to write a unit-test for some code which generates a powershell script and then check that the script has valid syntax. What's a good way to do this without actually executing the script? ...

  6. How do you comment out code in PowerShell? - Stack Overflow

    Sep 8, 2011 · The question asked "How do you comment out code in PowerShell", and this is the only answer that demonstrates how to comment out code. All of the other answers only demonstrate how …

  7. PowerShell Syntax $using - Stack Overflow

    Oct 31, 2020 · PowerShell Syntax $using Asked 5 years, 1 month ago Modified 5 years, 1 month ago Viewed 11k times

  8. How to do full syntax check of PowerShell script file using the ...

    Jul 15, 2021 · So I was wondering. How efficient is this PowerShell command in order to do a syntax check? Does it only validate the syntax of PowerShell cmdlets, functions, and aliases? Up to which …

  9. Ternary operator in PowerShell - Stack Overflow

    Jul 10, 2015 · From what I know, PowerShell doesn't seem to have a built-in expression for the so-called ternary operator. For example, in the C language, which supports the ternary operator, I could write …

  10. 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 …