使用PowerShell设置性能计数器值

问题描述 投票:1回答:1

是否可以使用PowerShell set性能计数器的值?

powershell performancecounter
1个回答
0
投票

$counter = (New-Object -TypeName System.Diagnostics.PerformanceCounter -ArgumentList ("CategoryName", "CounterName", "InstanceName", $false))    
$counter.RawValue = 0
© www.soinside.com 2019 - 2024. All rights reserved.