I could get performance counters on my server as administrator:
PS C:\Users\Administrator\Documents> Get-Counter '\memory\available bytes'
Timestamp CounterSamples
--------- --------------
28.04.2014 5:19:55 \\vm108838-2\memory\available bytes :
393011200
But when I try to get performance counter from non-admin user, I get following error:
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 states:
Performance counters are often protected by access control lists (ACLs). To get all available performance counters, open Windows PowerShell with the "Run as administrator" option.
So, the question is, where I could change that ACL to include my user?