How to run a program at startup with TI privileges ?

Discussion in 'Scripting' started by ceo54, Mar 1, 2022.

  1. ceo54

    ceo54 MDL Addicted

    Aug 13, 2015
    867
    361
    30
    Hello,

    I have a program that I want to start with the Windows but it needs TI privileges to run.

    I tried adding the program to the startup registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

    And changing the permissions of the key to system but then no program on the key would run.

    How do I do this?

    Any help will be greatly appreciated.

    Thannks.

    .
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. ceo54

    ceo54 MDL Addicted

    Aug 13, 2015
    867
    361
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    1,237
    911
    60
    Maybe by the Task Scheduler
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,375
    2,277
    60
    #5 freddie-o, Mar 3, 2022
    Last edited: Mar 3, 2022
    This is how I would do it
    Download PowerRun
    Create a script like this (Replace "PROGRAM.EXE" with your program)
    Code:
    @echo off
    WHOAMI /USER | FINDSTR "S-1-5-18" >nul || "%~dp0PowerRun_x64.exe" /SW:0 PROGRAM.EXE
    Put the script and PowerRun in your program's folder
    Create a shortcut of the script in Startup folder
    %AppData%\Microsoft\Windows\Start Menu\Programs\Startup
    or
    %AllUsersProfile%\Microsoft\Windows\Start Menu\Programs\Startup
     
  5. ceo54

    ceo54 MDL Addicted

    Aug 13, 2015
    867
    361
    30
    You understood exactly what was I trying to accomplish and your solution worked perfectly.

    Thank you freddy, your help is highly appreciated.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...