1

I would like to set Edge as an Assigned Access to a User. I'm using the following PowerShell Command:

Net localgroup administrators /add

Net localgroup administratoren administrators /add

$user = "KioskUser"
$userDesc = "Kiosk account with assigned Access"
New-LocalUser -Name $user -NoPassword -AccountNeverExpires -UserMayNotChangePassword -Description $userDesc | Set-LocalUser -PasswordNeverExpires $true
Add-LocalGroupMember -Group "Benutzer" -Member "$user"

Set-AssignedAccess -AppUserModelId Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge -UserName $user

The Skript works, but if i want to log in as KioskUser i always get the following error (translated from German):

"Your app could not be launched. Press CTRL+ALT+DELETE to log out or contact your system administrator. Search online for the error code 0xffffffff to get more Information."

Does anyone know how to solve this?

Im Using PS version 5.1.19041.1682

6
  • Which line causes the error? I tried your code and it worked on my system. Commented Mar 7, 2023 at 12:56
  • Did yo ustart PS by right click PS shortcut and select Run As Admin? Commented Mar 7, 2023 at 13:10
  • @Max The Skript works in Powershell, but if i log in with the KioskUser i get the Error. Commented Mar 7, 2023 at 15:20
  • @jdweng Yes i did. Maybe i need to make it clearer, The Skript works untill i want to log in with the user Commented Mar 7, 2023 at 15:21
  • Your system may not allow accounts with no password and never expire. Commented Mar 7, 2023 at 15:54

1 Answer 1

1

Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge is AppUserModelId for Legacy Edge. The AppUserModelId for Edge Chromium is MSEdge. enter image description here

So the PowerShell script sets Legacy Edge to kiosk mode but now we use Edge Chromium, that's why you can't login.

It's true that we can't use PowerShell to set up kiosk mode for Edge Chromium as it's not a UWP app. For configuring Edge Chromium kiosk mode, you can refer to this doc. After following the steps in the doc, then you can login Edge kiosk mode successfully.

Sign up to request clarification or add additional context in comments.

2 Comments

Yess, thank you very much. But this doc only shows it with a GUI and i need to do it with Powershell. But it seems like its harder than i expected because of the Edge Chromium
@spoon2 Seems we can't use PowerShell to set up Edge kiosk mode as PowerShell method only works for UWP apps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.