I have a .bat file that cannot allow me to set it to
run as admin as required by going to the Properties box and check for Privilege checkbox.
But mine is disabled as below snapshot.
What can I do to get it enabled?
It doesn't work because it's a batch file.
I like to use the following approach to get around this limitation:
This would enable DHCP for a network adapter. Should be fairly easy to adjust to your needs.
I think I've got the solution for you. You need to turn off UAC and back on again:
How to turn UAC on or off
Open User Account Control Settings by going to Start > Control Panel. In the search box, type "uac" without quotes, and then click Change User Account Control settings.
Do the following:
Way back I dealt with a similar issue on an .exe file and I recall trying this after some research over here. It solved my problem right away.