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")