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 no Auto-start apps as a staging phase. By manipulating them devices from the staging phase to different groups, I was able to push out the required kiosk app base on requirement.
As part of this approach, I am also using multiple kiosk profiles to configure different apps to auto start. Although I was able to execute that, in reality it doesn't work. I think the PC must be confused with so many different kiosk profiles, even it was told to exclude one or the other.
I am taking a different approach by just applying one neutral kiosk profile at the staging phase, with no auto-start apps configured. Then after I move the PC to different groups to get apps installed, I want to execute a command to quickly set app to auto-start with the Windows boot.
Can anyone provide some advice on such command?
Thanks.
- KurtBMayerSteel Contributor
Basically, after you move the machine from the "generic" staging group, you can trigger an Intune sync for policy sooner than the default schedule, at which time it should pick up its new deployments and profiles.
Take a look at these links for information on possible approaches:
Force Intune policy sync from a PowerShell script - MSEndpointMgr
Forcing an MDM sync from a Windows 10 client – Out of Office Hours (oofhours.com)
Please like and mark this thread as answered if it's helpful, thanks!
- Jannik_ReinhardIron ContributorHey nhtkid, did you try to use and powershell script or and endpoint analytics remediation script to execute the command?
- nhtkidIron ContributorHi Jannik, that is what I am planning to do. But I am struggling to find the right command line to put into script that add apps to the Windows Startup.
- Jannik_ReinhardIron ContributorOkay understood. Will write you a example script to do this. Will came back to you tomorrow or latest on saturday.