我正在使用 Get-counter 来获取例如处理器时间。我可以为本地计算机获取它,但我不知道如何输入凭据以从远程计算机获取数据。还是我需要在该服务器上打开某些东西来提供该信息?
Get-Counter -ComputerName "remotecomputer" -counter "\Processsor(_Total)\% Processor Time"
错误信息:
Get-Counter: Unable to access the desired computer or service. Check the permissions and authentication of the log service or the interactive user session against those on the computer or servece being monitored.
谢谢