Skip to content

Commit b902741

Browse files
authored
Add server name to removal message in Remove-DbaDbUser for WhatIf clarity (#9858)
1 parent e82a01d commit b902741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/Remove-DbaDbUser.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function Remove-DbaDbUser {
119119
$dropSchemas = @()
120120
Write-Message -Level Verbose -Message "Removing User $user from Database $db on target $server"
121121

122-
if ($Pscmdlet.ShouldProcess($user, "Removing user from Database $db")) {
122+
if ($Pscmdlet.ShouldProcess($user, "Removing user from Database $db on target $server")) {
123123
# Drop Schemas owned by the user before dropping the user
124124
$schemaUrns = $user.EnumOwnedObjects() | Where-Object Type -EQ Schema
125125
if ($schemaUrns) {

0 commit comments

Comments
 (0)