powershell - How to change access control list of performance counter? -
As an administrator, I can get the performance counter on my server:
C: \ Users \ Administrator \ Document & gt; Gate-counter 'memory' available bytes' timestamp counter samples --------- -------------- 28.04.2014 5:19:55 \\ vm108838-2 \ Memory \ Available Bytes: 393011200
But when I try to get the performance counter from a non-administrator user, I receive the following error:
PS C: \ Users \ lpu3 \ Documents & gt; Gate-counter 'memory' available bytes' gate-counter: unable to connect to specified computer or computer is offline + category info: invalid type: (:) [gate-counter], exception + fully qualified error: counter API, Microsoft .Powerschool. Commands Gate Quarter Commands
Says:
Display counters are often preserved by Access Control Lists (ACLs). To get all available display counters, open "Windows PowerShell" from the "Run as administrator" option.
So the question is, where could I change that ACL to include my user?
Do not change ACL to use the display monitor log to add user account according to the document: < / P>
Members of the Performance Monitor User Group • Users can access all the features available for the group. • View real-time performance data in performance monitor, and performance monitor can change display properties while viewing real-time data. • Data collector sets can not be created or modified. Members of the display log user group • Display Monitor Users can access all the features available for the group. • Create and modify a data collector set, when the batch user is logged on as a user, as the performance log user group is described in the enabled logging for the members. • The Windows kernel trace provider can not be used in the data collector set.
Comments
Post a Comment