SaCredential on Verbose #8049
jarias-korewireless
started this conversation in
Contributors
Replies: 1 comment 1 reply
-
Good call. Lez see what I can do real quick. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/sqlcollaborative/dbatools/blob/c817c4e80256dccaa17cd5d451196d3558772248/internal/functions/Invoke-Program.ps1#L167
How about adding some sort of mask to cover the Sa password on Verbose message?
$secureArgumentList = $ArgumentList.replace($sacredential.GetNetworkCredential().Password,"****")
Write-Message -Level Verbose -Message "Starting process [$Path] with arguments [$secureArgumentList] on $ComputerName through $Authentication protocol"
Beta Was this translation helpful? Give feedback.
All reactions