Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • 1
    there is WMIC too but powershell is more modern and flexible
    – barlop
    Commented Jun 15, 2014 at 8:13
  • Is Path the same thing as command line? What about the arguments to the executable? @barlop WMI still has a number of features that are otherwise unavailable in PowerShell.
    – jpmc26
    Commented May 10, 2017 at 16:34
  • @jpmc26 I didn't need those, but I think you can get them via StartInfo instead of Path based on stackoverflow.com/questions/1012409/… Commented May 12, 2017 at 14:03
  • @jpmc26 the file paths that the wmic command outputs, are the same as the file paths that the powershell ........ command there outputs e.g. open windows calculator and try it for calc.exe pastebin.com/raw/TK8xSPPL
    – barlop
    Commented May 14, 2017 at 5:21
  • What does the carrot do in the first command? Commented Nov 21, 2017 at 14:54