Skip to content

Instantly share code, notes, and snippets.

@makinuk
Created May 5, 2020 12:01
Show Gist options
  • Save makinuk/9a74059fb94c671dc34ba8d6629307c5 to your computer and use it in GitHub Desktop.
Save makinuk/9a74059fb94c671dc34ba8d6629307c5 to your computer and use it in GitHub Desktop.
PowerShell

Power Shell Usefull commands

Search running process with command line. Don't forget replace SEARCHTEXT with what you want

$ Get-WmiObject win32_Process | where-object {$_.CommandLine -like "*SEARCHTEXT*"} | Select-Object ProcessId,CommandLine,ProcessName,CreationDate | Format-List
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment