From 2bc177d60e04ae0933c9fd6607392acf96b2bf03 Mon Sep 17 00:00:00 2001 From: techBrandon <120288990+techBrandon@users.noreply.github.com> Date: Thu, 1 Aug 2024 16:23:31 -0500 Subject: [PATCH] Update Invoke-Locksmith.ps1 Same changes to Test --- Invoke-Locksmith.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Invoke-Locksmith.ps1 b/Invoke-Locksmith.ps1 index 55145cb..f24a185 100644 --- a/Invoke-Locksmith.ps1 +++ b/Invoke-Locksmith.ps1 @@ -2679,7 +2679,8 @@ function Invoke-Locksmith { $SafeUsers += '|' + $user } } - + $SafeUsers = $SafeUsers.Replace('||','|') + if ($Credential) { $Targets = Get-Target -Credential $Credential }