Posts/
Finding process command line in PowerShell
Thanks to this blog post.
Sometimes you want to know what command line arguments were used to start a process. PowerShell can tell you!
gcim win32_process | where { $_.Name -ieq "processname.exe"} | select commandline -ExpandProperty commandline