Files
Win11Debloat/Scripts/Helpers/GetTargetUserForAppRemoval.ps1

10 lines
374 B
PowerShell
Raw Normal View History

# Target is determined from $script:Params["AppRemovalTarget"] or defaults to "AllUsers"
# Target values: "AllUsers" (removes for all users + from image), "CurrentUser", or a specific username
function GetTargetUserForAppRemoval {
if ($script:Params.ContainsKey("AppRemovalTarget")) {
return $script:Params["AppRemovalTarget"]
}
return "AllUsers"
}