mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-07-20 21:10:20 +08:00
14 lines
342 B
PowerShell
14 lines
342 B
PowerShell
<#
|
|
.SYNOPSIS
|
|
Returns a readable description of the current app-removal target.
|
|
#>
|
|
function Get-FriendlyTargetUserName {
|
|
$target = Get-TargetUserForAppRemoval
|
|
|
|
switch ($target) {
|
|
"AllUsers" { return "all users" }
|
|
"CurrentUser" { return "the current user" }
|
|
default { return "user $target" }
|
|
}
|
|
}
|