File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ foreach ($Config in ($AllConfigs + $PlatformConfigs + $BuildConfigs + $ModelConf
214214
215215# region If on a client OS, remove AppX applications
216216if ($Platform -eq " Client" ) {
217- if (Get -IsOobeComplete ) {
217+ if (Test -IsOobeComplete ) {
218218 # If OOBE is complete, we should play it safe and not attempt to remove AppX apps
219219 # Explicitly call Remove-AppxApps.ps1 instead, e.g. for gold images
220220 Write-LogFile - Message " OOBE is complete. To remove AppX apps, explicitly call Remove-AppxApps.ps1"
@@ -227,7 +227,7 @@ if ($Platform -eq "Client") {
227227 }
228228 else {
229229 Write-LogFile - Message " Run script: $WorkingPath \Remove-AppxApps.ps1"
230- $Apps = & $Script.FullName @prefs
230+ $Apps = & $Script.FullName @prefs - Confirm: $false
231231 foreach ($App in $Apps ) { Write-LogFile - Message " Removed AppX app: $App " }
232232 }
233233 }
Original file line number Diff line number Diff line change @@ -811,7 +811,7 @@ function Set-TimeZoneUsingName {
811811 }
812812}
813813
814- function Get -IsOobeComplete {
814+ function Test -IsOobeComplete {
815815 # https://oofhours.com/2023/09/15/detecting-when-you-are-in-oobe/
816816 $TypeDef = @"
817817using System;
You can’t perform that action at this time.
0 commit comments