Created
November 30, 2020 05:13
-
-
Save mubix/1536156f06633a54e7f1f819d7fa740a to your computer and use it in GitHub Desktop.
Powershell Get-CSharp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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