mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-05-18 11:46:18 +00:00
Fix user display in deployment category details for unspecified usernames
This commit is contained in:
@@ -249,7 +249,7 @@ function Get-DeploymentCategoryDetailString {
|
|||||||
if ($lookup.ContainsKey('UserSelectionIndex')) {
|
if ($lookup.ContainsKey('UserSelectionIndex')) {
|
||||||
switch ([int]$lookup['UserSelectionIndex']) {
|
switch ([int]$lookup['UserSelectionIndex']) {
|
||||||
0 { $line1 += 'User: Current User' }
|
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' }
|
2 { $line1 += 'User: Sysprep' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -258,7 +258,7 @@ function Get-DeploymentCategoryDetailString {
|
|||||||
switch ([int]$lookup['AppRemovalScopeIndex']) {
|
switch ([int]$lookup['AppRemovalScopeIndex']) {
|
||||||
0 { $line1 += 'App Removal: All Users' }
|
0 { $line1 += 'App Removal: All Users' }
|
||||||
1 { $line1 += 'App Removal: Current User' }
|
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' })" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user