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"
No comments:
Post a Comment