How to get Administrator rights

Discussion in 'Windows 10' started by Klarinka14, Apr 12, 2023.

  1. Klarinka14

    Klarinka14 MDL Junior Member

    Oct 22, 2021
    53
    12
    0
    Hi,

    Can anyone recommend me a actual method or project on github, for example, to bypass Administrator authorization for installing/running the program on Windows 10?
    Thanks.
     
  2. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,710
    210
    Bypassing the UAC prompt? That's possible by starting the program through the Task Scheduler (works also on-demand using the command line).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. kaljukass

    kaljukass MDL Guru

    Nov 26, 2012
    3,449
    1,344
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,710
    210
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,008
    957
    90
    How about this at the start of your batch file:
    Code:
    ::# elevate with native shell by AveYo
    >nul reg add hkcu\software\classes\.Admin\shell\runas\command /f /ve /d "cmd /x /d /r set \"f0=%%2\"& call \"%%2\" %%3"& set _= %*
    >nul fltmc|| if "%f0%" neq "%~f0" (cd.>"%temp%\runas.Admin" & start "%~n0" /high "%temp%\runas.Admin" "%~f0" "%_:"=""%" & exit /b)
    Then you can add whatever you want to install. Java example:
    Code:
    Start /wait jre-8u361-windows-x64.exe INSTALL_SILENT=1 STATIC=0 AUTO_UPDATE=0 WEB_JAVA=1 WEB_JAVA_SECURITY_LEVEL=H WEB_ANALYTICS=0 EULA=0 REBOOT=0
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...