About 2,390,000 results
Open links in new tab
  1. syntax - What does the "@" symbol do in PowerShell? - Stack …

    May 21, 2021 · 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. 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 …

  3. What does $_ mean in PowerShell? - Stack Overflow

    If you break down powershell to basics then everything is a script block including a script file a, functions and cmdlets. You can define your own parameters but in some occasions one is …

  4. powershell - How to effectively use the `-Filter` parameter on …

    The -Filter string is very much like Powershell syntax (not quite, but most of the way there). You can use most of the same logical operators that Powershell supports, and they work much in …

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

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

  6. 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? …

  7. 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? ...

  8. windows - How to run a PowerShell script - Stack Overflow

    The MSDN/Technet URL now redirects to a page saying "The Windows PowerShell 1.0 Owner’s Manual has been retired. For the most up-to-date Windows PowerShell content, go to Using …

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

  10. powershell - How to enter a multi-line command - Stack Overflow

    Jul 13, 2010 · Is it possible to split a PowerShell command line over multiple lines? In Visual Basic I can use the underscore (_) to continue the command in the next line.