Need to elevate permissions without UAC pop ups

前端 未结 4 1061
野的像风
野的像风 2020-12-20 22:13

I have an application which is a launcher for another application (my main one). The launcher goes to an FTP server, downloads updates and installs them. However, the update

4条回答
  •  执念已碎
    2020-12-20 22:25

    As others have said UAC is to prevent this type of behavior, however you may be able to disable UAC then enable UAC post installation as I am assuming your "users" are local to your business. You could push this to a batch file and execute it using psexec as I believe you can do that remotely without installing anything on the client machine.

    Disable UAC

    C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
    

    Enable UAC

    C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
    

提交回复
热议问题