Skip to content

Commit

Permalink
Write new example for adding Windows Authentication logins (#4159)
Browse files Browse the repository at this point in the history
  • Loading branch information
Splaxi authored and potatoqualitee committed Oct 9, 2018
1 parent 4abfbab commit 7a6445e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions functions/New-DbaLogin.ps1
Expand Up @@ -103,6 +103,11 @@
Copies logins [Login1] and [Login2] from instance sql1 to instance sql2, but enforces password and expiration policies for the new logins. New logins will also have a default database set to [tempdb] and will be created in a disabled state.
.EXAMPLE
PS C:\> New-DbaLogin -SqlInstance sql1 -Login domain\user
Creates a new Windows Authentication backed login on sql1. The login will be part of the public server role.
#>
[CmdletBinding(SupportsShouldProcess = $true, DefaultParameterSetName = "Password")]
param (
Expand Down

0 comments on commit 7a6445e

Please sign in to comment.