Run .bat file without right click to run as administrator

0

I am running a .bat file, it happens that to execute it I must right click and "Run as Administrator", I am looking for the way to execute the bat without having to do this, but in the same bat the permissions of the user to Administrator. This is because in the bat there are commands that make configurations in the system such as adding a host in the system32 Hosts file.

    
asked by Kinafune 10.10.2018 в 23:13
source

1 answer

0

Right Click -> Properties -> Direct Access -> Advanced Options -> Check the Run as administrator tab and save everything.

    
answered by 10.10.2018 в 23:25