Forum Discussion
nhtkid
Nov 01, 2022Iron Contributor
Script a cmd to set Startup App
Dear Community Members, We have an odd requirement to create a Windows 10 Kiosk Setup to turn into kiosk running different apps. I was able to set up the PC to a multi-app kiosk mode, with n...
Jannik_Reinhard
Nov 05, 2022Iron Contributor
Does this help. For sure you have to customize this script. If you have questions or if you need support let me know.
$appPath = 'C:/...../app.exe'
$trigger = New-ScheduledTaskTrigger -AtLogon
$user = "NT AUTHORITY\SYSTEM" # Specify the account that runs the app
$action = New-ScheduledTaskAction -Execute $appPath # Specify what program to add arguments use -Argument ""
Register-ScheduledTask -TaskName "RunAppAfterLogin" -Trigger $trigger -User $user -Action $action -Force # Specify the name of the task to run with system permissions use -RunLevel Highest
nhtkid
Nov 11, 2022Iron Contributor
Thank you so much! Let me do some testing.