Open batch file as admin
This example tries to open the hosts
file. If unsuccessfull, then prompts for Administrator password.
Checkout the video here
Source codes
Using temporary VBS script
Using powershell
Thanks to @temisociali
This example tries to open the hosts
file. If unsuccessfull, then prompts for Administrator password.
Checkout the video here
Thanks to @temisociali