Skip to content

Instantly share code, notes, and snippets.

@crimsoncore
Forked from mubix/Get-CSharp.ps1
Created December 5, 2020 14:18
Show Gist options
  • Select an option

  • Save crimsoncore/34ca947059c7c610c83d938058193582 to your computer and use it in GitHub Desktop.

Select an option

Save crimsoncore/34ca947059c7c610c83d938058193582 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