Skip to content

Archive for

6
Nov

Stop/Disable SqlAgent/MSSQLServer service via Powershell

One-liner to stop and disable the sqlagent and msssqlserver service.

Get-Service MSSQLSERVER, SQLSERVERAGENT | Stop-Service -PassThru -Force | Set-Service -StartupType disabled