mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-08-23 16:12:08 +00:00
fix: force stop widget processes to prevent prompt (#713)
This commit is contained in:
@@ -132,6 +132,14 @@ Describe 'Invoke-FeatureApply' {
|
||||
Should -Invoke Stop-Process -Times 0 -Exactly
|
||||
}
|
||||
|
||||
It 'stops widget processes without a confirmation prompt' {
|
||||
Mock Get-Process { [PSCustomObject]@{ Name = 'Widgets' } }
|
||||
|
||||
Invoke-FeatureApply -FeatureId 'DisableWidgets'
|
||||
|
||||
Should -Invoke Stop-Process -Times 1 -Exactly -ParameterFilter { $Force -and $ErrorAction -eq 'SilentlyContinue' }
|
||||
}
|
||||
|
||||
It 'enables the expected optional Windows features' {
|
||||
Invoke-FeatureApply -FeatureId 'EnableWindowsSandbox'
|
||||
Invoke-FeatureApply -FeatureId 'EnableWindowsSubsystemForLinux'
|
||||
|
||||
Reference in New Issue
Block a user