Hey Akshay,
Which user account types are you seeing this behavior with? In other words, are you seeing these prompts with Standard users, Power Users, Local Administrators, etc.?
The reason I ask is because Taskmgr.exe is one of those applications set with the “highestAvailable” UAC manifest. This means that if you are running as a local Admin (or even as a Power User), Task Manager will require you to elevate at launch, even when elevation has not been explicitly requested by the user. Regedit behaves this way as well, I believe. From Microsoft’s docs (regarding highestAvailable):
The application runs at the highest permission level that it can. If the user who starts the application is a member of the Administrators group, this option is the same as level="requireAdministrator". If the highest available permission level is higher than the level of the opening process, the system prompts for credentials.
You can confirm if a program is running elevated a couple of different ways, for example:
- Add the column “UAC Virtualization” in the Details tab of Task Manager. IF a process has the entry in that column of “Not Allowed,” then it is elevated.
- You can also use SysInternals Proc Explorer to check the specific privileges of a process (looking for more powerful privs like “SeSecurityPrivilege”).
For more information on application manifests: Application manifests - Win32 apps | Microsoft Learn