lss
2025-06-18 64ec1a7fb55389d8db371d112e49f741de866796
1
2
3
4
5
6
7
8
9
10
11
12
$categoryName = "ODP.NET, Managed Driver"
try{
$categoryExists_unreg = [System.Diagnostics.PerformanceCounterCategory]::Exists($categoryName)
if($categoryExists_unreg)
{
[System.Diagnostics.PerformanceCounterCategory]::Delete($categoryName) | out-null
}
write-host("$categoryName Performance Counter was un-registered successfullly.")
}
catch{
write-host("ERROR: $categoryName Performance Counter un-registration failed.")
}