mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-08-22 07:36:25 +00:00
fix: add logging for unrecognized app-removal scope items
This commit is contained in:
@@ -233,9 +233,11 @@ function Get-AppRemovalScopeTarget {
|
|||||||
switch ($selectedItem.Name) {
|
switch ($selectedItem.Name) {
|
||||||
"AppRemovalScopeAllUsers" { return 'AllUsers' }
|
"AppRemovalScopeAllUsers" { return 'AllUsers' }
|
||||||
"AppRemovalScopeCurrentUser" { return 'CurrentUser' }
|
"AppRemovalScopeCurrentUser" { return 'CurrentUser' }
|
||||||
|
default {
|
||||||
|
Write-Warning "Unrecognized app-removal scope item '$($selectedItem.Name)'. Defaulting to AllUsers."
|
||||||
|
return 'AllUsers'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Invoke-AppPreset {
|
function Invoke-AppPreset {
|
||||||
|
|||||||
Reference in New Issue
Block a user