Skip to content

Commit

Permalink
Get-DbaLogin - clean up old code causing issues (#9291)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpomfret authored Mar 27, 2024
1 parent 545e254 commit b4d4fb0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions public/Get-DbaLogin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ function Get-DbaLogin {
.PARAMETER MustChangePassword
A Switch to return Logins that need to change password.
.PARAMETER SqlLogins
Deprecated. Please use -Type SQL
.PARAMETER WindowsLogins
Deprecated. Please use -Type Windows.
.PARAMETER HasAccess
A Switch to return Logins that have access to the instance of SQL Server.
Expand Down Expand Up @@ -173,12 +167,6 @@ function Get-DbaLogin {
[switch]$EnableException
)
begin {
if ($SQLLogins) {
$Type = "SQL"
}
if ($WindowsLogins) {
$Type = "Windows"
}

$loginTimeSql = "SELECT login_name, MAX(login_time) AS login_time FROM sys.dm_exec_sessions GROUP BY login_name"
$loginProperty = "SELECT
Expand Down

0 comments on commit b4d4fb0

Please sign in to comment.