MultiAppKioskModus Windows 11
-
- Beobachter
- Beiträge: 2
- Registriert: 14.08.2023, 15:32
MultiAppKioskModus Windows 11
I am trying to configure the kiosk mode in windows 11 with multiapps using a powershell script. I found an official guide on Microsoft's website but it doesn't work. The most I have achieved with my code is that I don't get an error when I run it but then when I log in with the kiosk user it automatically unlocks before the desktop appears.
kiosk.ps1:
$nameSpaceName="root\cimv2\mdm\dmmap"
$className="MDM_AssignedAccess"
$obj = Get-CimInstance -Namespace $namespaceName -ClassName $className
Add-Type -AssemblyName System.Web
$obj.Configuration = [System.Web.HttpUtility]::HtmlEncode(@"
<?xml version="1.0" encoding="utf-8" ?>
<AssignedAccessConfiguration
xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config"
xmlns:r1809="http://schemas.microsoft.com/AssignedAc ... 810/config"
>
<Profiles>
<Profile Id="{564a7931-0289-4d92-bf72-04f4f6db519d}">
<AllAppsList>
<AllowedApps>
<App DesktopAppPath="C:\WINDOWS\SYSTEM32\CMD.EXE" />
</AllowedApps>
</AllAppsList>
<StartLayout>
<![CDATA[<LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014 ... aultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014 ... dification">
<LayoutOptions StartTileGroupCellWidth="6" />
<DefaultLayoutOverride>
<StartLayoutCollection>
<defaultlayout:StartLayout GroupCellWidth="6">
<start:Group Name="">
<start:DesktopApplicationTile Size="2x2" Column="2" Row="0" DesktopApplicationLinkPath="C:\WINDOWS\SYSTEM32\CMD.EXE" />
</start:Group>
</defaultlayout:StartLayout>
</StartLayoutCollection>
</DefaultLayoutOverride>
</LayoutModificationTemplate>
]]>
</StartLayout>
<Taskbar ShowTaskbar="true"/>
</Profile>
</Profiles>
<Configs>
<Config>
<Account>test1</Account>
<DefaultProfile Id="{564a7931-0289-4d92-bf72-04f4f6db519d}"/>
</Config>
</Configs>
</AssignedAccessConfiguration>
"@)
Set-CimInstance -CimInstance $obj
With the code a desktop should appear with the cmd program only.
Maybe someone has an idea how to improve the code to make it work?
When the kiosk user logs in, only the apps defined in the script should appear.
kiosk.ps1:
$nameSpaceName="root\cimv2\mdm\dmmap"
$className="MDM_AssignedAccess"
$obj = Get-CimInstance -Namespace $namespaceName -ClassName $className
Add-Type -AssemblyName System.Web
$obj.Configuration = [System.Web.HttpUtility]::HtmlEncode(@"
<?xml version="1.0" encoding="utf-8" ?>
<AssignedAccessConfiguration
xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config"
xmlns:r1809="http://schemas.microsoft.com/AssignedAc ... 810/config"
>
<Profiles>
<Profile Id="{564a7931-0289-4d92-bf72-04f4f6db519d}">
<AllAppsList>
<AllowedApps>
<App DesktopAppPath="C:\WINDOWS\SYSTEM32\CMD.EXE" />
</AllowedApps>
</AllAppsList>
<StartLayout>
<![CDATA[<LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014 ... aultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014 ... dification">
<LayoutOptions StartTileGroupCellWidth="6" />
<DefaultLayoutOverride>
<StartLayoutCollection>
<defaultlayout:StartLayout GroupCellWidth="6">
<start:Group Name="">
<start:DesktopApplicationTile Size="2x2" Column="2" Row="0" DesktopApplicationLinkPath="C:\WINDOWS\SYSTEM32\CMD.EXE" />
</start:Group>
</defaultlayout:StartLayout>
</StartLayoutCollection>
</DefaultLayoutOverride>
</LayoutModificationTemplate>
]]>
</StartLayout>
<Taskbar ShowTaskbar="true"/>
</Profile>
</Profiles>
<Configs>
<Config>
<Account>test1</Account>
<DefaultProfile Id="{564a7931-0289-4d92-bf72-04f4f6db519d}"/>
</Config>
</Configs>
</AssignedAccessConfiguration>
"@)
Set-CimInstance -CimInstance $obj
With the code a desktop should appear with the cmd program only.
Maybe someone has an idea how to improve the code to make it work?
When the kiosk user logs in, only the apps defined in the script should appear.
-
Tante Google
- Holgi
- Guru
- Beiträge: 3094
- Registriert: 12.05.2018, 12:33
- Hat sich bedankt: 392 Mal
- Danke erhalten: 507 Mal
- Gender:
Re: MultiAppKioskModus Windows 11
it must be a powershell script? Or could you use this free tool:
https://www.mirabyte.com/en/frontface/lockdown-tool/
Multi-App Kiosk Mode will be available in Windows 11 23H2 and is right now available in Windows 11 Insider Preview Build 25169:
https://blogs.windows.com/windows-insid ... ild-25169/
https://www.mirabyte.com/en/frontface/lockdown-tool/
Multi-App Kiosk Mode will be available in Windows 11 23H2 and is right now available in Windows 11 Insider Preview Build 25169:
https://blogs.windows.com/windows-insid ... ild-25169/
PDF24 angepasste Installation (nur PDF Druckertreiber) per Script: viewtopic.php?t=30284
Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo): viewtopic.php?t=26214
Vorstellung: tiny11builder; Script zur Verschlankung von Windows 11: viewtopic.php?t=30134
Windows StartMenü Empfohlen (Recommended Section) komplett ausblenden: viewtopic.php?t=30574
Hyper-V VM per Script erstellen viewtopic.php?t=25114
Winget (Desktop App Installer) für Windows Versionen ohne Store installieren (HowTo): viewtopic.php?t=26214
Vorstellung: tiny11builder; Script zur Verschlankung von Windows 11: viewtopic.php?t=30134
Windows StartMenü Empfohlen (Recommended Section) komplett ausblenden: viewtopic.php?t=30574
Hyper-V VM per Script erstellen viewtopic.php?t=25114