How to self elevate the bat file with auto select the UAC prompt with [ok] option.
Posted: 04 Sep 2022 19:05
I have a below batch file as conf.bat
Rem Batch file starts
ipconfig /release
ipconfig /renew
ipconfig /flushdns
ipconfig /registerdns
Rem Batch file ends.
Here, the command prompt display with “The requested operation requires elevation” for (ipconfig/registerdns).
I want to self elevate bat file and to auto select the [ok] button for UAC prompt for this batch file {conf.bat].
Pl. help.
— KSKwin
Rem Batch file starts
ipconfig /release
ipconfig /renew
ipconfig /flushdns
ipconfig /registerdns
Rem Batch file ends.
Here, the command prompt display with “The requested operation requires elevation” for (ipconfig/registerdns).
I want to self elevate bat file and to auto select the [ok] button for UAC prompt for this batch file {conf.bat].
Pl. help.
— KSKwin