Files
Win11Debloat/Scripts/Features/BackupRegistryFeatureSelection.ps1
T

15 lines
364 B
PowerShell
Raw Normal View History

<#
.SYNOPSIS
Filters a list of features to those that have a non-empty RegistryKey.
2026-05-08 21:19:52 +02:00
.PARAMETER Features
An array of feature objects to filter.
#>
2026-05-08 21:19:52 +02:00
function Get-RegistryBackedFeatures {
param(
[object[]]$Features = @()
2026-05-08 21:19:52 +02:00
)
return @($Features | Where-Object { -not [string]::IsNullOrWhiteSpace([string]$_.RegistryKey) })
}