I was trying to attach w3p process to debug on Visual Studio 2019 as Admin User but I am getting error as you do not have enough privilege to attach to process. I checked my Local policies and I don't have rights on Debug Programs.
Is there a way to use Attach to Process without access on this Policy.
l am afraid that you cannot use Attach to Process without access on the Policy and you can refer the info from here.
To troubleshoot your issue, you can try these:
1) add your current domain by
Start-->Control Panel-->Administrative tools-->Local Security Policy-->Local Policies-->User Rights Assignment-->Debug programs.2) make sure that
the local security settingselects Classic(Start-->Control Panel-->Administrative tools-->Local Security Policy-->Local Policies-->Security Options-->User Rights Assignment-->double-clickNetwork access: Sharing and security model for local accounts.)More info you can refer to this.
3) If the w3p process is from shared network, please insure the current account is on the Shared LAN and make sure that your account can access network and this process.
4) If the w3p application is on your lcoal system, please move this application to a public folder such as
D disknot a system disk to make sure it can access.Hope it could help you.