diff --git a/windows/installer/oem/Configure-Kiosk.ps1 b/windows/installer/oem/Configure-Kiosk.ps1 index 13ad7ca..cc2d360 100644 --- a/windows/installer/oem/Configure-Kiosk.ps1 +++ b/windows/installer/oem/Configure-Kiosk.ps1 @@ -22,7 +22,7 @@ $launcher='C:\Windows\Setup\Scripts\Start-WelcomeShell.cmd' $welcomeEscaped = $WelcomeExe.Replace("'","''") @" @echo off -powershell -NoProfile -ExecutionPolicy Bypass -Command "Start-Process -LiteralPath '$welcomeEscaped' -Verb RunAs" +powershell -NoProfile -ExecutionPolicy Bypass -Command "Start-Process -FilePath '$welcomeEscaped' -Verb RunAs" REM Shell Launcher tracks this CMD process; the Welcome app runs detached above. REM Loop keeps the process alive so Shell Launcher doesn't restart it on idle. :loop @@ -59,7 +59,7 @@ catch { # Fail-OPEN: no kiosk, but the Welcome wizard must still launch (we removed FirstLogonCommands). $ro='HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce' New-Item $ro -Force | Out-Null - Set-ItemProperty $ro -Name 'SilverOSWelcome' -Type String -Value "cmd /c powershell -NoProfile -ExecutionPolicy Bypass -Command `"Start-Process -LiteralPath '$welcomeEscaped' -Verb RunAs`"" + Set-ItemProperty $ro -Name 'SilverOSWelcome' -Type String -Value "cmd /c powershell -NoProfile -ExecutionPolicy Bypass -Command `"Start-Process -FilePath '$welcomeEscaped' -Verb RunAs`"" } # --- Keyboard Filter (block shell hotkeys) ---