Skip to content

Commit 3f7bbcb

Browse files
committed
fix: windows explorer opening when new user creation
1 parent 20b0902 commit 3f7bbcb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

playbook/Executables/AtlasModules/Scripts/Initialize-NewUser.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ if ($setupMarker -lt 1)
363363

364364
# Write the completion marker for this user so the guard above exits early on any future re-run.
365365
Stop-Process -Name explorer -Force -ErrorAction SilentlyContinue
366+
# Explorer needs a moment to fully tear down before relaunching, or the new instance
367+
# doesn't recognize itself as the shell and opens as a plain window instead.
368+
Start-Sleep -Seconds 2
366369
Set-SearchTaskbarMode
367370
Set-SetupMarker -Value 2
368371

0 commit comments

Comments
 (0)