Kiosk application using Shell Launcher with PowerShell causing errors

J Y 5 Reputation points
2025-07-06T18:43:30.0066667+00:00

Hello,

I was trying to build a Windows Kiosk application using our custom application built using .NET. I was following the exact steps outlined here (in the PowerShell tab):

https://free.blessedness.top/en-us/windows/configuration/shell-launcher/quickstart-kiosk?source=recommendations&tabs=ps

However, at the last step of the PowerShell script, it throws a general error at runtime:

$obj = Set-CimInstance -CimInstance $obj

I have ensured that the XML is correctly modified, with the path to our EXE, and a unique profile ID.

The corresponding user profile has also been created.

Also, I am using Windows 11 Professional edition.

So, I'm not sure what could be going wrong. Appreciate any leads into it.

TIA,

JY

Windows for business | Windows Client for IT Pros | Devices and deployment | Other
{count} vote

1 answer

Sort by: Most helpful
  1. Ed Shepherd 0 Reputation points
    2025-09-30T16:22:18.38+00:00

    OK, so this is how I did it in the end...

    I added a local account and added that to admins temporarily
    I then downloaded ·         Autologon - Sysinternals | Microsoft Learn

    ran that as admin and added the appropriate details, using "." (no quotes) as domain to signify local account

    ·         Run reg edit as Admin – use Control account for admins

    o    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies

    §  Create new KEY = “System”

    o    Create string value with Name as "Shell" with path to exe to launch as shell

    "Shell" - "full\path\to\exe\here"

    restart and you are done.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.