All checks were successful
Build latest image / build-container (push) Successful in 1m20s
85 lines
3.0 KiB
Markdown
85 lines
3.0 KiB
Markdown
---
|
|
title: Kiosk Einrichtung
|
|
weight: 2
|
|
prev: /kiosk
|
|
---
|
|
|
|
So richten Sie den Kiosk für die Veranstaltung ein.
|
|
|
|
## Mit Windows Assigned Access
|
|
|
|
{{< callout type="info" >}}
|
|
Dies wurde nur auf Windows 11 Pro und Enterprise getestet.
|
|
{{< /callout >}}
|
|
|
|
### Voraussetzungen
|
|
|
|
- Windows 11 Pro oder Enterprise
|
|
- Nur ein konfigurierter Drucker oder Belegdrucker als Standarddrucker eingerichtet
|
|
- Administratorzugriff auf das System
|
|
|
|
### Einrichtung
|
|
|
|
1. Laden Sie [psexec](/files/psexec.exe) herunter
|
|
2. Öffnen Sie eine PowerShell mit Administratorrechten
|
|
3. Wechseln Sie zum Download-Ordner `cd C:\Users\<Benutzername>\Downloads`
|
|
4. Führe den psexec-Befehl aus: `.\psexec.exe -i -s powershell.exe`
|
|
5. Führe das folgende Skript aus
|
|
|
|
```powershell
|
|
$assignedAccessConfiguration = @"
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<AssignedAccessConfiguration xmlns="http://schemas.microsoft.com/AssignedAccess/2017/config" xmlns:rs5="http://schemas.microsoft.com/AssignedAccess/201810/config" xmlns:v4="http://schemas.microsoft.com/AssignedAccess/2021/config">
|
|
<Profiles>
|
|
<Profile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}">
|
|
<KioskModeApp v4:ClassicAppPath="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" v4:ClassicAppArguments="--kiosk https://kiosk.lauf-fuer-kaya.de/ --kiosk-printing --edge-kiosk-type=fullscreen" />
|
|
<v4:BreakoutSequence Key="Ctrl+E" />
|
|
</Profile>
|
|
</Profiles>
|
|
<Configs>
|
|
<Config>
|
|
<AutoLogonAccount rs5:DisplayName="Lfk Kiosk" />
|
|
<DefaultProfile Id="{EDB3036B-780D-487D-A375-69369D8A8F78}" />
|
|
</Config>
|
|
</Configs>
|
|
</AssignedAccessConfiguration>
|
|
"@
|
|
|
|
$namespaceName="root\cimv2\mdm\dmmap"
|
|
$className="MDM_AssignedAccess"
|
|
$obj = Get-CimInstance -Namespace $namespaceName -ClassName $className
|
|
$obj.Configuration = [System.Net.WebUtility]::HtmlEncode($assignedAccessConfiguration)
|
|
Set-CimInstance -CimInstance $obj
|
|
```
|
|
|
|
6. Öffne die Windows Befehlseingabe (cmd) mit Administratorrechten und führe diese Befehle aus, um den Energiesparmodus zu deaktivieren
|
|
|
|
```batch
|
|
powercfg.exe -x -monitor-timeout-ac 0
|
|
powercfg.exe -x -monitor-timeout-dc 0
|
|
powercfg.exe -x -disk-timeout-ac 0
|
|
powercfg.exe -x -disk-timeout-dc 0
|
|
powercfg.exe -x -standby-timeout-ac 0
|
|
powercfg.exe -x -standby-timeout-dc 0
|
|
powercfg.exe -x -hibernate-timeout-ac 0
|
|
powercfg.exe -x -hibernate-timeout-dc 0
|
|
```
|
|
|
|
7. Reboot via `shutdown /r /t 0`
|
|
|
|
### Deinstallation
|
|
|
|
1. Um den Kiosk-Modus zu verlassen, drücken Sie "Strg+Alt+E"
|
|
2. Öffnen Sie eine PowerShell mit Administratorrechten
|
|
3. Wechseln Sie zum Desktop-Ordner (C:\Users\<Benutzername>\Desktop)
|
|
4. Führen Sie den psexec-Befehl aus: `psexec.exe -i -s powershell.exe`
|
|
5. Führen Sie das folgende Skript aus
|
|
|
|
```powershell
|
|
$namespaceName="root\cimv2\mdm\dmmap"
|
|
$className="MDM_AssignedAccess"
|
|
$obj = Get-CimInstance -Namespace $namespaceName -ClassName $className
|
|
$obj.Configuration = $null
|
|
Set-CimInstance -CimInstance $obj
|
|
```
|