Get-SqlLogin

Gets an SMO Login object.

Syntax

Get-SqlLogin [-sqlserver] <Object> [<CommonParameters>]

Detailed Description

The Get-SqlLogin function gets a collection of SMO Login objects for the specified SQL Server.

Related Commands

* Get-SqlLogin

Parameters

Name Description Required? Pipeline Input Default Value
sqlserver    true  false   

Input Type

None You cannot pipe objects to Get-SqlLogin

Return Values

Microsoft.SqlServer.Management.Smo.Login Get-SqlLogin returns a Microsoft.SqlServer.Management.Smo.Login object.

Notes

Additional properties including the effective members of the Login are returned. Nested AD/local groups are recursively enumerated and returned in a flat structure.

Examples

EXAMPLE 1

Get-SqlLogin "Z002\sql2K8"
This command gets a collection of SMO Login objects for SQL Server Z002\SQL2K8.