使用PowerShell设置性能计数器值

好战的黑猩猩

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

好战的黑猩猩

是的

$counter = (New-Object -TypeName System.Diagnostics.PerformanceCounter -ArgumentList ("CategoryName", "CounterName", "InstanceName", $false))    
$counter.RawValue = 0

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章