英文:
Kioskmode with Powershell - Can't start App 0xffffffff
问题
我想将 Edge 设置为分配给用户的指定访问。我正在使用以下 PowerShell 命令:
Net localgroup administrators /add
Net localgroup administratoren administrators /add
$user = "KioskUser"
$userDesc = "带有分配访问的 Kiosk 账户"
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
脚本运行正常,但如果我尝试以 KioskUser 登录,总是会出现以下错误(从德语翻译而来):
"无法启动您的应用。按下 CTRL+ALT+DELETE 以注销或联系您的系统管理员。搜索错误代码 0xffffffff 以获取更多信息。"
有谁知道如何解决这个问题?
我使用的是 PowerShell 版本 5.1.19041.1682。
英文:
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
答案1
得分: 1
Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge
是传统 Edge 的 AppUserModelId
。Edge Chromium 的 AppUserModelId
是 MSEdge
。
所以 PowerShell 脚本将传统 Edge 设置为展览模式,但现在我们使用 Edge Chromium,这就是您无法登录的原因。
确实,我们不能使用 PowerShell 为 Edge Chromium 设置展览模式,因为它不是一个 UWP 应用程序。要配置 Edge Chromium 展览模式,请参考此文档。在按照文档中的步骤进行操作后,您就可以成功登录 Edge 展览模式。
英文:
Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge
is AppUserModelId
for Legacy Edge. The AppUserModelId
for Edge Chromium is MSEdge
.
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论