Fix issues with domain accounts & fix run.bat breaking when launched from path with certain characters (#693)

This commit is contained in:
Jeffrey
2026-07-08 23:18:04 +02:00
committed by GitHub
parent 89a5d508d8
commit ce8c10042e
4 changed files with 643 additions and 53 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ function Test-TargetUserName {
}
}
if ($normalizedUserName -eq $env:USERNAME) {
if (Test-UserNameMatch -UserNameA $normalizedUserName -UserNameB $env:USERNAME) {
return [PSCustomObject]@{
IsValid = $false
UserName = $normalizedUserName