运行远程命令时,Typepref命令不提供有效的计数器 [英] Typepref command gives no valid counters when running remote command

查看:99
本文介绍了运行远程命令时,Typepref命令不提供有效的计数器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对此很执迷.

我正在尝试执行以下批处理命令,该命令在与远程服务器位于同一网络上的系统上成功运行

I am trying to execute following batch command which runs successfully on my system present on same network as remote server,

typeperf"\ 192.168.1.247 \ Processor(_Total)\%Processor Time" -sc 2

typeperf "\192.168.1.247\Processor(_Total)\% Processor Time" -sc 2

但是,如果我尝试在同一网络上存在的另一台远程服务器上运行同一命令,

But if I try to run the same command on another remote server present on same network,

typeperf"\ 192.168.1.241 \ Processor(_Total)\%Processor Time" -sc 2

typeperf "\192.168.1.241\Processor(_Total)\% Processor Time" -sc 2

这给了我错误:没有有效的计数器.

请让我知道可能是什么问题,以及什么可能的解决方案.

Please let me know what could be the issue and what could be the possible solution to this.

关于, Suvojit

Regards, Suvojit

推荐答案

  1. 尝试使用以下命令刷新WMI:

  1. Try refreshing WMI with this command:

winmgmt /resyncperf & wmiadap /f

确保WMI服务正在运行,或重新启动它:

Make sure that the WMI service is running, or restart it:

net start winmgmt

运行此命令以确保禁用密钥不存在,或者禁用密钥的值为0.

Run this command to ensure that the disable key doesnt exist, or its value is 0 if it exists.

REG query HKLM\SYSTEM\CurrentControlSet\Services\PerfProc\Performance /v "Disable Performance Counters"

尝试使用 LODCTR/R 命令.

如果没有其他效果,则可以尝试手动重建性能计数器库值作为最后的选择.

If nothing else works, you can try to manually rebuild Performance Counter library values as a last resort.

这篇关于运行远程命令时,Typepref命令不提供有效的计数器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆