From 332e00e732bd661aa9fe14679892fdea8cc4746d Mon Sep 17 00:00:00 2001 From: evild3ad Date: Sun, 29 Jan 2023 18:38:20 +0100 Subject: [PATCH] Update Get-ProcessTree.ps1 --- Scripts/Get-ProcessTree/Get-ProcessTree.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Scripts/Get-ProcessTree/Get-ProcessTree.ps1 b/Scripts/Get-ProcessTree/Get-ProcessTree.ps1 index 7155777..05a5d9e 100644 --- a/Scripts/Get-ProcessTree/Get-ProcessTree.ps1 +++ b/Scripts/Get-ProcessTree/Get-ProcessTree.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Shows a process history tree with data extracted from a MemProcFS-Analyzer process overview CSV .EXAMPLE @@ -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 @@ -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")