From 30a2ea684b4d031a86291d9e2d8b295d1ee18754 Mon Sep 17 00:00:00 2001 From: John Uhlmann <53329154+jdu2600@users.noreply.github.com> Date: Wed, 25 Feb 2026 14:01:37 +0800 Subject: [PATCH] add deprecated banner for ps1 version --- Get-InjectedThreadEx.ps1 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Get-InjectedThreadEx.ps1 b/Get-InjectedThreadEx.ps1 index 9d3bad2..170e17c 100644 --- a/Get-InjectedThreadEx.ps1 +++ b/Get-InjectedThreadEx.ps1 @@ -98,6 +98,24 @@ function Get-InjectedThreadEx [UInt32]$ProcessId ) + $bannerWidth = 74 + $pad = { param($s) " $s" + (' ' * [Math]::Max(0, $bannerWidth - 4 - $s.Length)) + " " } + $blank = ' ' * $bannerWidth + $lines = @( + $blank + (& $pad "=== DEPRECATED ===") + (& $pad "") + (& $pad "Get-InjectedThreadEx.ps1 was deprecated in September 2023.") + (& $pad "It was replaced by Get-InjectedThreadEx.exe") + (& $pad "") + (& $pad "https://github.com/jdu2600/Get-InjectedThreadEx/releases") + $blank + ) + foreach ($line in $lines) { + Write-Host $line -BackgroundColor DarkCyan -ForegroundColor Yellow + } + Write-Host "" + if(![Environment]::Is64BitProcess) { Write-Warning "32-bit not currently supported."