Let me put up my problem in a different way:
1. My team has developed a windows (C# WPF) application. This application requires elevated privileges to execute. (right click on app --> "Run as administrator" even for an administrator user). This application need to run at startup occasionally (depending on user preferences).
2. When user selects to run the application on windows startup, the application creates its shortcut in the "startup folder" of the windows.
3. As this application needs administrative privileges to start running, we have made the setting as shown in the attachment image.
Problem : With this UAC settings my application startup automatically whenever configured to start, at boot on windows 7. For windows 10 (I upgraded my PC from windows 7 to windows 10 Pro recently) these settings do not help. When I right click "Run as administrator" on my application from the shortcut in the startup folder, my application works fine.
I made the registry settings as discussed earlier, It helps start the application on boot. However, some MS tools give an message saying : eg "MS Edge can't be opened using the built-in Administrator account. Sign in with a different account and try again.".
I feel, somehow the UAC prompt, which generally occurs on running this application cannot allow same application in startup mode. How can I tell windows to run the application in administrator mode ? (windows does not by default run an app in administrator mode even when logged-in user is an administrator of that PC).