From 9f2d3059f41dc31f7c658f04967c31141b8453cf Mon Sep 17 00:00:00 2001 From: Simone Bizzotto Date: Mon, 10 Feb 2025 22:14:52 +0100 Subject: [PATCH] Set-DbaLogin, report correct name for -WhatIf --- 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