Skip to content

Commit

Permalink
Update Get-ProcessTree.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
evild3ad committed Jan 29, 2023
1 parent 404fbf6 commit 332e00e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Scripts/Get-ProcessTree/Get-ProcessTree.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Shows a process history tree with data extracted from a MemProcFS-Analyzer process overview CSV
.EXAMPLE
Expand All @@ -7,8 +7,9 @@
.AUTHOR
Dominik Schmidt @ https://github.com/DaFuqs
.VERSION
1.4
1.5
.VERSION_HISTORY
1.5: - Load PresentationCore if env does not load it automatically
1.4: - Nodes to not expand / subtract on double click anymore. This action is already used for opening the properties window
1.3: - Use a compiled version of DamerauLevenshteinDistance for increased performance
- Orphaned processes get that listed in the "Suspicious" tag
Expand Down Expand Up @@ -144,12 +145,11 @@ Param (
[switch] $NoSuspiciousChecks
)

[void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[void][System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
[void][System.Reflection.Assembly]::LoadWithPartialName("PresentationFramework")
[void][System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
[void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows")

Add-Type -AssemblyName "System.Windows"
Add-Type -AssemblyName "System.Windows.Forms"
Add-Type -AssemblyName "System.Drawing"
Add-Type -AssemblyName "PresentationFramework"
Add-Type -AssemblyName "PresentationCore"

# querying the entries of the csv file
$csvEntries = @(Import-CSV -Path $CSVPath -Delimiter "`t")
Expand Down

0 comments on commit 332e00e

Please sign in to comment.