One-liner to stop and disable the sqlagent and msssqlserver service.
Get-Service MSSQLSERVER, SQLSERVERAGENT | Stop-Service -PassThru -Force | Set-Service -StartupType disabled
One-liner to stop and disable the sqlagent and msssqlserver service.
Get-Service MSSQLSERVER, SQLSERVERAGENT | Stop-Service -PassThru -Force | Set-Service -StartupType disabled