mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-05-18 11:46:18 +00:00
Add verbose logging for missing registry keys in Invoke-RegistryDeleteValueOperation
This commit is contained in:
@@ -151,6 +151,9 @@ function Invoke-RegistryDeleteValueOperation {
|
|||||||
)
|
)
|
||||||
|
|
||||||
if ($null -eq $KeyInfo.Key) {
|
if ($null -eq $KeyInfo.Key) {
|
||||||
|
$valueName = Get-NormalizedRegistryValueName -ValueName $Operation.ValueName
|
||||||
|
$displayValueName = if ([string]::IsNullOrEmpty($valueName)) { '(Default)' } else { $valueName }
|
||||||
|
Write-Verbose "Unable to find or open key '$($Operation.KeyPath)' and value '$displayValueName'"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user