Add option to revert previous changes to windows defaults

This commit is contained in:
Raphire
2026-03-22 22:07:51 +01:00
parent edd815fdbb
commit a54c3c6918
14 changed files with 697 additions and 56 deletions

View File

@@ -0,0 +1,17 @@
# Returns the feature metadata for a parameter when it supports undo; otherwise returns $null.
function GetUndoFeatureForParam {
param (
[string]$paramKey
)
if (-not $script:Features -or -not $script:Features.ContainsKey($paramKey)) {
return $null
}
$feature = $script:Features[$paramKey]
if (-not ($feature.RegistryUndoKey -and $feature.UndoAction)) {
return $null
}
return $feature
}