Win11Debloat/Scripts/Helpers/Get-FriendlyTargetUserName.ps1

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" }
}
}