providing administrative username and password from batch

时间:2017-10-12 10:01:03

标签: batch-file batch-processing

I tried to install Firefox, (just as a test example), from a batch file, but the installation prompted for the Administrator username and password.

I tried this batch script but it doesn't work.

set "username=administrator"
set "password=password"
call "\\Applications\DRIVERS\Firefox-Setup_EN_33-0-1.exe
CScript //nologo //E:JScript "%~F0" "%username%{tab}%password%{enter}"
goto :EOF

0 个答案:

没有答案