From 8abb18d64fe7e1e63244c872ebb072ec2fc45593 Mon Sep 17 00:00:00 2001 From: Simone Bizzotto Date: Mon, 24 Feb 2025 12:01:24 +0100 Subject: [PATCH] Set-DbaLogin, report correct name for -WhatIf (#9582) --- public/Set-DbaLogin.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/Set-DbaLogin.ps1 b/public/Set-DbaLogin.ps1 index a69575108d..72973e9259 100644 --- a/public/Set-DbaLogin.ps1 +++ b/public/Set-DbaLogin.ps1 @@ -251,7 +251,7 @@ function Set-DbaLogin { # Loop through all the logins foreach ($l in $InputObject) { - if ($Pscmdlet.ShouldProcess($l, "Setting Changes to Login on $($server.name)")) { + if ($Pscmdlet.ShouldProcess($l, "Setting Changes to Login on $($l.Parent.Name)")) { $server = $l.Parent # Create the notes