sqlexpr32.exe
/
norebootchk
/
qn reboot
=
ReallySuppress addlocal
=
all instancename
=
SQLEXPRESS SQLAUTOSTART
=
1
ADDUSERASADMIN
=
1
AGTACCOUNT
=
"
NT AUTHORITY\NETWORK SERVICE
"
SQLBROWSERACCOUNT
=
"
NT AUTHORITY\NETWORK SERVICE
"
SQLACCOUNT
=
"
NT AUTHORITY\NETWORK SERVICE
"
解析:
sqlexpr32.exe /norebootchk 关闭重启检查
/qn 静默安装
reboot=ReallySuppress
addlocal=all 安装所有模块
instancename=SQLEXPRESS 实例名
SQLAUTOSTART=1 自动启动
ADDUSERASADMIN=1
以下为SQL运行所用到三个账户,也可以设置成其他账户
AGTACCOUNT="NT AUTHORITY\NETWORK SERVICE"
SQLBROWSERACCOUNT="NT AUTHORITY\NETWORK SERVICE"
SQLACCOUNT="NT AUTHORITY\NETWORK SERVICE"