【发布时间】:2014-06-14 00:07:16
【问题描述】:
我可以作为管理员在我的服务器上获取性能计数器:
PS C:\Users\Administrator\Documents> Get-Counter '\memory\available bytes'
Timestamp CounterSamples
--------- --------------
28.04.2014 5:19:55 \\vm108838-2\memory\available bytes :
393011200
但是当我尝试从非管理员用户那里获取性能计数器时,我收到以下错误:
PS C:\Users\lpu3\Documents> Get-Counter '\memory\available bytes'
Get-Counter : Unable to connect to the specified computer or the computer is offline.
+ CategoryInfo : InvalidResult: (:) [Get-Counter], Exception
+ FullyQualifiedErrorId : CounterApiError,Microsoft.PowerShell.Commands.GetCounterCommand
Documentation 状态:
性能计数器通常受访问控制列表 (ACL) 保护。要获取所有可用的性能计数器,请使用“以管理员身份运行”选项打开 Windows PowerShell。
那么,问题是,我可以在哪里更改该 ACL 以包含我的用户?
【问题讨论】:
标签: powershell acl windows-server perfmon