From b52a33224713aac95df31c427d53052fcce683b5 Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Sun, 26 Apr 2026 14:15:26 +0200 Subject: [PATCH] Fix user display in deployment category details for unspecified usernames --- Scripts/GUI/Show-ConfigWindow.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/GUI/Show-ConfigWindow.ps1 b/Scripts/GUI/Show-ConfigWindow.ps1 index 97b7fec..6f0d898 100644 --- a/Scripts/GUI/Show-ConfigWindow.ps1 +++ b/Scripts/GUI/Show-ConfigWindow.ps1 @@ -249,7 +249,7 @@ function Get-DeploymentCategoryDetailString { if ($lookup.ContainsKey('UserSelectionIndex')) { switch ([int]$lookup['UserSelectionIndex']) { 0 { $line1 += 'User: Current User' } - 1 { if ($lookup['OtherUsername']) { $line1 += "User: $($lookup['OtherUsername'])" } } + 1 { $line1 += "User: $(if ($lookup['OtherUsername']) { $lookup['OtherUsername'] } else { 'Other User' })" } 2 { $line1 += 'User: Sysprep' } } } @@ -258,7 +258,7 @@ function Get-DeploymentCategoryDetailString { switch ([int]$lookup['AppRemovalScopeIndex']) { 0 { $line1 += 'App Removal: All Users' } 1 { $line1 += 'App Removal: Current User' } - 2 { if ($lookup['OtherUsername']) { $line1 += "App Removal: $($lookup['OtherUsername'])" } } + 2 { $line1 += "App Removal: $(if ($lookup['OtherUsername']) { $lookup['OtherUsername'] } else { 'Other User' })" } } }