Skip to content

Commit

Permalink
Merge pull request #148 from techBrandon/testing
Browse files Browse the repository at this point in the history
Bug Fix for SafeUsers when groups are empty
  • Loading branch information
TrimarcJake authored Aug 2, 2024
2 parents 8a2b5fc + 2bc177d commit d7eeb41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Invoke-Locksmith.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2679,7 +2679,8 @@ function Invoke-Locksmith {
$SafeUsers += '|' + $user
}
}

$SafeUsers = $SafeUsers.Replace('||','|')

if ($Credential) {
$Targets = Get-Target -Credential $Credential
}
Expand Down

0 comments on commit d7eeb41

Please sign in to comment.