How to call another bat file from the run as administrator bat file which will execute as logged in normal user RRS feed

  • Question

  • I have created 2 bat file 

    @echo off
    start .NET Framework install.msi
    call normal.bat
    start anotherinstaller.exe 

    The main.bat file runs as administrator. when call normal.bat file from the Administrative command prompt the normal.bat file also execute as administrator. I need to run the normal.bat as logged in user rather then admin privileges. 
    Is this possible to run the normal.bat as logged in user in the middle in the main.bat?
    • Moved by Bill_Stewart Monday, January 7, 2019 8:11 PM User did not read "You cannot bypass the UAC prompt" post
    Friday, November 9, 2018 7:55 PM

All replies

  • That cannot be done with a batch file.

    You can use "runas" but you will be prompted for a password.


    Friday, November 9, 2018 8:14 PM