Skip to content

Instantly share code, notes, and snippets.

@gavz
Forked from mubix/Get-CSharp.ps1
Created December 1, 2020 18:09
Show Gist options
  • Select an option

  • Save gavz/c98063772802c62960c113ca891625d0 to your computer and use it in GitHub Desktop.

Select an option

Save gavz/c98063772802c62960c113ca891625d0 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