[Tweaks] Disable output for DISM for the Recall tweak (#3154)

* Fixed lock caused by expected input for DISM

This is the main event

* Miscellaneous file

Don't know why this file was modified by the compile preprocessor
This commit is contained in:
CodingWonders
2025-01-17 15:40:04 +01:00
committed by GitHub
parent 72c23823b2
commit bcc801683d
2 changed files with 5 additions and 3 deletions

View File

@ -47,7 +47,7 @@ function Set-WinUtilRegistry {
Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
} catch [System.Management.Automation.ItemNotFoundException] {
Write-Warning $psitem.Exception.ErrorRecord
} catch [System.UnauthorizedAccessException]{
} catch [System.UnauthorizedAccessException] {
Write-Warning $psitem.Exception.Message
} catch {
Write-Warning "Unable to set $Name due to unhandled exception"