ÿþ<html> <head> <title>Get-Sql</title> </head> <body> <h1>Get-Sql</h1> <div>Uses WMI to list all of the SQL Server related services along with the service state and service account.</div> <h2> Syntax </h2> <code>Get-Sql [-computername] &lt;String&gt; [&lt;CommonParameters&gt;]</code> <h2> Detailed Description </h2> <div> The Get-Sql function uses WMI to list all of the SQL Server related services running on the specified computer along with the service state and service account. </div> <h2> Related Commands </h2> <div> * <a href='Get-Sql.htm'>Get-Sql</a><br/> </div> <h2> Parameters </h2> <table border='1'> <tr> <th>Name</th> <th>Description</th> <th>Required?</th> <th>Pipeline Input</th> <th>Default Value</th> </tr> <tr valign='top'> <td>computername&nbsp;</td> <td>&nbsp;</td> <td>true&nbsp;</td> <td>false&nbsp;</td> <td>&nbsp;</td> </tr> </table> <h2> Input Type </h2> <div>None You cannot pipe objects to Get-Sql</div> <h2> Return Values </h2> <div>System.Management.Automation.PSCustomObject Get-Sql returns a System.Management.Automation.PSCustomObject object.</div> <h2> Examples </h2> <h3> EXAMPLE 1</h3> <pre>Get-Sql "Z002"</pre> <div>This command returns SQL service information for the Z002 Server.</div> </body> </html>