Sitecore has no necessary permissions for reading/creating counters

我怕爱的太早我们不能终老 提交于 2019-12-03 05:41:17

A Sitecore application pool user (most probably Network Service user) has to be a member of the system “Performance Monitor Users” group to have access to the mentioned registry key. Adding the user to this group and restarting IIS should solve the problem.

Azadeh Khojandi

As explained in approved answer you need to add app pool user to performance monitor users and performance log users group. To add your app pool user add iis apppool\{site name}. You need to restart your machine again or alternatively restart your iis and log off and log in to make sure your changes got picked up by user group membership

Here are a few screenshots.

whuu

Powershell solution (works on Windows 10 Home, where you don't have lusrmgr.msc console). Run PS console as administrator then:

PS C:\WINDOWS\system32>Add-LocalGroupMember -Group "Performance Monitor Users" -Member "{UserName}"
PS C:\WINDOWS\system32>iisreset

Where the {UserName} is your application pool identity user or Network Service.

Mind that group name may be different (it may be in your local language for non-english Windows version). Then call:

PS C:\WINDOWS\system32>Get-LocalGroup

This will list all groups and you will find correct name there.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!