Install SQL Server Silently from Command Line
Here we use SQL Server 2017 Latest patch as an example. Let’s assume we downloaded the file and named it to :
SQLServer2017-KB4583457-x64 — GDR
REM starting SQL Server cu install…………
“C:\DBA\SQLServer2017-KB4583457-x64 — GDR.exe” /Quiet /IAcceptSQLServerLicenseTerms /Action=Patch /AllInstancesREM SQL SERVER CU install complete
REM optional STEP to reboot your machine
REM Reboot the host before kicking off the install
shutdown.exe /r /f /c “DBA scheduled reboot” /t 1
Sometimes the official document is too long to read. I hope this simple script be helpful to you!