How to add an item to the registry to start at startup without UAC

I have a program that should start when Windows starts. I created a string value in the registry HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\
This application starts at startup, but it displays a UAC prompt. Normally, my application does not need to run UAC. If I create a shortcut in the startup folder, it works fine without UAC, but the problem is that I need to run it from the registry. and it is a pity that I also can not use the task scheduler. Does anyone have an idea how to do this?

+6
source share
1 answer

You can always run it for one user, this command can be launched by a regular user and will include the application when launched only for this user.

 REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /V "My App" /t REG_SZ /F /D "C:\MyAppPath\MyApp.exe" 

You cannot add something to the local registry key to start the computer, but at some point you are not running something as an administrator.

For the Another Task Scheduler option, you need something to run as an administrator to add a task.

+17
source

Source: https://habr.com/ru/post/950466/


All Articles