mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-21 04:07:42 -06:00
[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:
parent
72c23823b2
commit
bcc801683d
@ -2596,13 +2596,15 @@
|
||||
"InvokeScript": [
|
||||
"
|
||||
Write-Host \"Disable Recall\"
|
||||
DISM /Online /Disable-Feature /FeatureName:Recall
|
||||
DISM /Online /Disable-Feature /FeatureName:Recall /Quiet /NoRestart
|
||||
Write-Host \"Please restart your computer in order for the changes to be fully applied.\"
|
||||
"
|
||||
],
|
||||
"UndoScript": [
|
||||
"
|
||||
Write-Host \"Enable Recall\"
|
||||
DISM /Online /Enable-Feature /FeatureName:Recall
|
||||
DISM /Online /Enable-Feature /FeatureName:Recall /Quiet /NoRestart
|
||||
Write-Host \"Please restart your computer in order for the changes to be fully applied.\"
|
||||
"
|
||||
],
|
||||
"link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/DisableRecall"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user