Skip to content

Commit eba3595

Browse files
committed
Rename Test-IsOobeComplete
1 parent 88f8234 commit eba3595

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Install-Defaults.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ foreach ($Config in ($AllConfigs + $PlatformConfigs + $BuildConfigs + $ModelConf
214214

215215
#region If on a client OS, remove AppX applications
216216
if ($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
}

src/Install-Defaults.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 = @"
817817
using System;

0 commit comments

Comments
 (0)