Skip to content

Instantly share code, notes, and snippets.

@mubix
Created November 30, 2020 05:13
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save mubix/1536156f06633a54e7f1f819d7fa740a to your computer and use it in GitHub Desktop.
Save mubix/1536156f06633a54e7f1f819d7fa740a to your computer and use it in GitHub Desktop.
Powershell Get-CSharp
function Get-CSharpProcess {
$proclist = Get-Process
foreach($proc in $proclist) {
foreach($mod in $proc.Modules)
{
if($mod.ModuleName -imatch "mscoree")
{
Write-Output(".NET Found in:`t" + $proc.Name)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment