From 38ad5779f2a044489fb038d3d6e750539a1148a6 Mon Sep 17 00:00:00 2001 From: Bill Long Date: Mon, 23 May 2022 10:20:03 -0500 Subject: [PATCH] Use COMPUTERNAME instead of localhost This allows the script to work properly on workstations. Fixes #1075 --- Performance/SimplePerf/SimplePerf.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Performance/SimplePerf/SimplePerf.ps1 b/Performance/SimplePerf/SimplePerf.ps1 index b96f9e1659..fb78d926d2 100644 --- a/Performance/SimplePerf/SimplePerf.ps1 +++ b/Performance/SimplePerf/SimplePerf.ps1 @@ -238,7 +238,7 @@ begin { return } - $counterFullNames = $countersFiltered | ForEach-Object { ("\\localhost" + $_) } + $counterFullNames = $countersFiltered | ForEach-Object { ("\\$env:COMPUTERNAME" + $_) } if ($DisplayFilterResults) { Write-Host "$($env:COMPUTERNAME): The following counters matched the specified filters:"