mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-06-10 18:46:28 +00:00
* Remove RemoveCommApps and RemoveW11Outlook presets. These are largely redundant. Use -RemoveApps parameter instead * Add additional options to change the `All Apps` view in the start menu (Hide, Grid, Category, List) * Add clean start menu backup validation to start menu restore function * Resolve nested quoting bug in Run.bat when path has spaces, see #583 * Fix desync issue when toggling "Only Show Installed" checkbox too fast * Fix: add missing keys in Sysprep/Undo regfiles for Disabling Recall and Windows Suggested content * Fix 'Disable Animations' Sysprep settings not being set for new users * Update README.md * Update CONTRIBUTING.md
22 lines
476 B
PowerShell
22 lines
476 B
PowerShell
function Get-FeatureId {
|
|
param(
|
|
[Parameter(Mandatory)]
|
|
$Feature
|
|
)
|
|
|
|
$featureId = [string]$Feature.FeatureId
|
|
if ([string]::IsNullOrWhiteSpace($featureId)) {
|
|
throw 'Selected feature is missing required FeatureId.'
|
|
}
|
|
|
|
return $featureId
|
|
}
|
|
|
|
function Get-RegistryBackedFeatures {
|
|
param(
|
|
[object[]]$Features = @()
|
|
)
|
|
|
|
return @($Features | Where-Object { -not [string]::IsNullOrWhiteSpace([string]$_.RegistryKey) })
|
|
}
|