About 329,000 results
Open links in new tab
  1. What does $$, $?, $^ represent in powershell? - Stack Overflow

    Nov 22, 2010 · 6 In PowerShell, a dollar sign preceding a name indicates a variable. The symbols in question are just special cases of variables provided by the PowerShell environment. They …

  2. scope - Variable scoping in PowerShell - Stack Overflow

    Feb 17, 2012 · A sad thing about PowerShell is that function and scriptblocks are dynamically scoped. But there is another thing that surprised me is that variables behave as a copy-on …

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

  4. regex - Matching strings in PowerShell - Stack Overflow

    Jul 18, 2018 · Preface: PowerShell string- comparison operators are case-insensitive by default (unlike the string operators, which use the invariant culture, the regex operators seem to use …

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

    How do I run a PowerShell script? I have a script named myscript.ps1 I have all the necessary frameworks installed I set that execution policy thing I have followed the instructions on this …

  6. Running a command as Administrator using PowerShell?

    Sep 12, 2016 · Here is how to run a elevated powershell command and collect its output form within a windows batch file in a single command (i.e not writing a ps1 powershell script).

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

  8. PowerShell and the -contains operator - Stack Overflow

    Sep 18, 2013 · True PS C:\> "Windows", "PowerShell" -Contains "Shell" False #Not an exact match I think what you want is the -Match operator: "12-18" -Match "-" Which returns True. …

  9. What is the difference between dot (.) and ampersand (&) in …

    Feb 13, 2019 · The difference between the . and & operators matters only when calling PowerShell scripts or functions (or their aliases) - for cmdlets and external programs, they act …

  10. powershell - How to properly use the -verbose and -debug …

    Nov 29, 2010 · PowerShell already does this as the code below proves. function f { [cmdletbinding()]Param() "f is called" Write-Debug Debug Write-Verbose Verbose } function g { …

Refresh