dbatools is a free PowerShell module with over 180 SQL Server administration, best practice and migration commands included.


Get-DbaSqlService

Gets the SQL Server related services on one or more computers.

Requires Local Admin rights on destination computer(s).

Screenshots

Examples

Gets the SQL Server related services on computer sqlserver2014a.

Get-DbaSqlService -ComputerName sqlserver2014a

Gets the SQL Server related services on computers sql1, sql2 and sql3.

‘sql1′,’sql2′,’sql3’ | Get-DbaSqlService

Gets the SQL Server related services on computers sql1 and sql2, and shows them in a grid view.

Get-DbaSqlService -ComputerName sql1,sql2 | Out-Gridview

Gets the SQL Server related services of type “SSRS” (Reporting Services) on computers in the variable MyServers.

Get-DbaSqlService -ComputerName $MyServers -Type SSRS

Author

This command was created by Klaas Vandenberghe. You can find Klaas on Twitter and his blog.

Get-Help

From PowerShell, execute Get-Help Get-DbaSqlService -Detailed for more information on this function.

Source Code

Want to see the source code? View Get-DbaSqlService.ps1 on GitHub
 

Related commands