From eae44138158271746853f045422a56e25e9ab620 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Thu, 14 Apr 2022 15:04:11 -0400 Subject: [PATCH] add output for ad-hoc runs --- Fix-HighCPUUsage.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Fix-HighCPUUsage.ps1 b/Fix-HighCPUUsage.ps1 index 8cdf90e..5fa05fd 100644 --- a/Fix-HighCPUUsage.ps1 +++ b/Fix-HighCPUUsage.ps1 @@ -1,2 +1,3 @@ # Terminate known high CPU processes +Write-Output "Terminating all running instances of reg.exe and AgentPackageTaskManagement.exe" 'reg', 'AgentPackageTaskManagement' | ForEach-Object { Get-Process -Name $_ -ErrorAction SilentlyContinue | Stop-Process -Force } \ No newline at end of file