Skip to content

Commit

Permalink
Merge pull request #435 from sqlcollaborative/development
Browse files Browse the repository at this point in the history
two fixes
  • Loading branch information
Chrissy LeMaire authored Dec 16, 2016
2 parents 1b1b776 + 2a48e4d commit 7e2406e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dbatools.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
RootModule = 'dbatools.psm1'

# Version number of this module.
ModuleVersion = '0.8.691'
ModuleVersion = '0.8.692'

# ID used to uniquely identify this module
GUID = '9d139310-ce45-41ce-8e8b-d76335aa1789'
Expand Down Expand Up @@ -221,7 +221,7 @@
LicenseUri = "http://www.gnu.org/licenses/gpl-3.0.en.html"

# Release notes for this particular version of the module
# ReleaseNotes = False
ReleaseNotes = "https://dbatools.io/releases"

# If true, the LicenseUrl points to an end-user license (not just a source license) which requires the user agreement before use.
# RequireLicenseAcceptance = ""
Expand Down
2 changes: 1 addition & 1 deletion functions/Test-DbaValidLogin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Tests all logins excluding any that are from the mydomain Domain
$windowslogins = $allwindowsloginsgroups | Where-Object { $_.LoginType -eq 'WindowsUser' }
$windowslogins = $windowslogins | Where-Object { $_.Name.StartsWith("NT ") -eq $false -and $_.Name.StartsWith($SqlServer) -eq $false -and $_.Name.StartsWith("BUILTIN") -eq $false }
$windowsGroups = $allwindowsloginsgroups | Where-Object { $_.LoginType -eq 'WindowsGroup' }
$windowsGroups = $windowsGroups | Where-Object { $_.Name.StartsWith("NT ") -eq $false -and $_.Name -notmatch $SqlServer -and $_.Name.StartsWith("BUILTIN") -eq $false }
$windowsGroups = $windowsGroups | Where-Object { $_.Name.StartsWith("NT ") -eq $false -and $_.Name -notmatch $SqlServer.Split("\\")[0] -and $_.Name.StartsWith("BUILTIN") -eq $false }
}

}
Expand Down
2 changes: 2 additions & 0 deletions internal/DynamicParams.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ filled with snapshot list from specified SQL Server server.
$databaselist += $database.DatabaseSnapshotBaseName
}
}

$databaselist = $databaselist | Get-Unique

# Reusable parameter setup
$newparams = New-Object System.Management.Automation.RuntimeDefinedParameterDictionary
Expand Down

0 comments on commit 7e2406e

Please sign in to comment.