Windows 10: Do we need an Administrator Privileges to access Performance Counters?

Discus and support Do we need an Administrator Privileges to access Performance Counters? in Windows 10 BSOD Crashes and Debugging to solve the problem; Hi experts, Recently, I tried to use PerformanceCounter to query some counters of the system.... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by Zephyr Zhang, Dec 17, 2018.

  1. Do we need an Administrator Privileges to access Performance Counters?


    Hi experts,

    Recently, I tried to use PerformanceCounter to query some counters of the system.

    https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.performancecounter.-ctor?view=netframework-4.7.2


    My confusing is, in the document, it seems we need an administrative Privilege.


    Actually, i can run the binary and get correct results(cpu, memory), but if the binary is started by a user without administrative Privilege, we will get PerfLib1008 and PerNet 2004 error in event log. Even I the user is already added into the "Performance Monitor" group.





    Thanks.

    :)
     
    Zephyr Zhang, Dec 17, 2018
    #1

  2. Never prompted to elevate privilege as administrator


    OK, I tried Dinesh's tutorial. First, here's a list of accounts for my machine:


    Do we need an Administrator Privileges to access Performance Counters? [​IMG]


    I held down Shift and rebooted, and got the WinRE splash screen. I was prompted to log in, with "Dan" my only option:


    Do we need an Administrator Privileges to access Performance Counters? [​IMG]


    If I clicked on "Don't see your account", I got this:


    Do we need an Administrator Privileges to access Performance Counters? [​IMG]


    Is it suggesting that "Dan" is an administrator account? Oh, that it were so... I went back, selected the "Dan" account, and it booted into command prompt. I then attempted the first of Dinesh's instructions:


    Do we need an Administrator Privileges to access Performance Counters? [​IMG]


    Hello darkness, my old friend... "Access Denied."

    Dan
     
    shortmort37, Dec 17, 2018
    #2
  3. Dell Touchpad uninstall administrator privileges

    Hi,

    Thank you for posting your query in Microsoft Community. We appreciate your interest in Windows 10.

    From the description of the issue, I understand that you are unable to uninstall drivers from Device Manager as it prompts saying log-in with administrator privileges, we will help you to resolve this issue.

    I would recommend you to see if you are logged in administrator account, if not then enable it. Please follow the below steps to enable:

    Step 1: I would suggest you to enable the built-in administrator account.

    You need to run the command from an elevated command prompt. To do that follow the below steps:


    • Press the Windows key + R from the keyboard to open the
      Run Command Dialog Box.

    • Type cmd and right-click on the
      Command Prompt
      result that should appear.

    • This opens a list of options at the bottom. Select
      Run as administrator
      .

    • Accept the UAC (User Account Control) prompt.

    • Enter the following command to enable the hidden administrator account:
      net user administrator /active:yes

    Hope it helps. Feel free to contact us for any assistance on Windows Operating System, we will be happy to help you.
     
    Deepika Gowda, Dec 17, 2018
    #3
  4. Do we need an Administrator Privileges to access Performance Counters?

    Windows 10 PC not recognizing administrator privileges.

    Hi Jade,

    Damages within the components of your user profile can be one of the possible reasons why you are experiencing an issue with using its administrator privileges. To troubleshoot this concern, we suggest creating a new admin user profile. To be able to create
    a new administrator user profile, you would need to enable the built-in administrator in your Windows 10 device.

    To enable the built-in administrator account, follow these steps:

    • Using Search type CMD to open the Command Prompt. Right click on CMD then choose Run as administrator. If you are prompted for an administrator password or for a confirmation, type the password, or click Yes.
    • In the Command Prompt window, type net user administrator /active:yes and then hit the Enter key.
    • You should see a message that the command completed successfully. Log out the user profile you are currently using, and you’ll now see the Administrator account as a choice on the login screen.
    • Using the built-in administrator account, create a new admin user profile.
    • Log into the new admin user profile.
    • Check if the same issue persists.

    Note: The built-in administrator account has more privileges than a regular administrator account. Privileges that can easily generate a conflict on your system. We only recommend enabling the built-in administrator account for troubleshooting purposes and
    you have to disable it once you are done.

    To disable the built-in administrator account, access the Command Prompt with administrator privileges. Type the command
    net user administrator /active:no and then hit the Enter key. The built-in administrator account will now be disabled, and shouldn’t show up on the login screen.

    Update us with the results.
     
    Darleen Pen, Dec 17, 2018
    #4
Thema:

Do we need an Administrator Privileges to access Performance Counters?

Loading...
  1. Do we need an Administrator Privileges to access Performance Counters? - Similar Threads - need Administrator Privileges

  2. Administrator Privileges Needed

    in Windows 10 Software and Apps
    Administrator Privileges Needed: I am sole account for my home Dell Inspiron Laptop using Windows 10 Pro. I am listed as Administrator under accounts but cannot delete some files because it doesn't recognize me as Administrator. How can I function as Administrator on my personal computer?...
  3. Administrator Privileges Needed

    in Windows 10 Customization
    Administrator Privileges Needed: I am sole account for my home Dell Inspiron Laptop using Windows 10 Pro. I am listed as Administrator under accounts but cannot delete some files because it doesn't recognize me as Administrator. How can I function as Administrator on my personal computer?...
  4. Administrator Privileges Needed

    in Windows 10 Gaming
    Administrator Privileges Needed: I am sole account for my home Dell Inspiron Laptop using Windows 10 Pro. I am listed as Administrator under accounts but cannot delete some files because it doesn't recognize me as Administrator. How can I function as Administrator on my personal computer?...
  5. Driver for "Performance Counters"

    in Windows 10 Gaming
    Driver for "Performance Counters": In Device Manager there are yellow triangles on "Performance Counters". It says there is no driver for these "Performance Counters". Microsoft Support said to delete these and then restart the computer, but that did not help. I cannot get anything to print from this computer...
  6. Driver for "Performance Counters"

    in Windows 10 Software and Apps
    Driver for "Performance Counters": In Device Manager there are yellow triangles on "Performance Counters". It says there is no driver for these "Performance Counters". Microsoft Support said to delete these and then restart the computer, but that did not help. I cannot get anything to print from this computer...
  7. Driver for "Performance Counters"

    in Windows 10 Drivers and Hardware
    Driver for "Performance Counters": In Device Manager there are yellow triangles on "Performance Counters". It says there is no driver for these "Performance Counters". Microsoft Support said to delete these and then restart the computer, but that did not help. I cannot get anything to print from this computer...
  8. Performance Counters

    in Windows 10 Drivers and Hardware
    Performance Counters: I installed the 10900X on the X299, and now these Performance Counter things need drivers, I`ve always had the latest Chipset drivers, doesn`t help. I`ve been Googling it but finding nothing that will help. And this Logitech item, Both the Logitech G910 Orion Spark keyboard...
  9. I, the administrator, do not have administrative privileges

    in Windows 10 Ask Insider
    I, the administrator, do not have administrative privileges: So I'm trying to download some plugins for Cubase 10.5, but every time I try to save the actual plugin in the VST3 file it says "You don't currently have permission to access this folder." Ok, whatever, I right click the file location and edit properties, then permissions,...
  10. Documents folder needs administrator privileges

    in User Accounts and Family Safety
    Documents folder needs administrator privileges: When I was using Windows 8.1, I could move and edit the contents of my Documents folder with ease. Now, since I upgraded to Windows 10, I need to grant administrator permissions to every action I try to take on the Documents folder. Since a lot of my apps save items to that...