How to Skip the Reboot While Installing SQL Server or Applying Patches Using PowerShell or Command Prompt

How to Skip the Reboot While Installing SQL Server or Applying Patches Using PowerShell or Command Prompt

When installing SQL Server or applying patches, sometimes a reboot is initiated automatically. To avoid this, you can use specific parameters or switches in PowerShell or Command Prompt. Here's how you can skip the reboot:

Using Command Prompt

To install SQL Server without rebooting, use the following command with the /SkipRules and /Action parameters:

setup.exe /SkipRules=RebootRequiredCheck /Action=Install


For applying patches without rebooting, use:
setup.exe /SkipRules=RebootRequiredCheck /Action=Patch

Using PowerShell

In PowerShell, you can achieve the same by invoking the setup executable with the necessary parameters:

Start-Process -FilePath "setup.exe" -ArgumentList "/SkipRules=RebootRequiredCheck /Action=Install"

For patching:
Start-Process -FilePath "setup.exe" -ArgumentList "/SkipRules=RebootRequiredCheck /Action=Patch"


Skip the Server reboot while applying patches or SQL server installation

By including the /SkipRules=RebootRequiredCheck parameter, you instruct the installer to bypass the reboot check, allowing the installation or patching process to complete without requiring a system restart.

Feel free to modify these commands to suit your specific SQL Server version and installation requirements.


No comments:

Post a Comment