docs(kiosk): Added script to disable windows shortcuts
All checks were successful
Build latest image / build-container (push) Successful in 1m27s

This commit is contained in:
Nicolai Ort 2025-04-25 14:29:17 +02:00
parent 215fcc9f91
commit 486115eb1b
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
2 changed files with 60 additions and 2 deletions

View File

@ -85,9 +85,31 @@ So richten Sie den Kiosk für die Veranstaltung ein.
{{< /tab >}}
{{< /tabs >}}
6. Disable sleep and hibernation:
6. Ruhezustand und Windows Tastenkombinationen deaktivieren
```powershell
$NullKey = [byte[]]($null,$null)
$LeftWindows = [byte[]](0x5b,0xe0)
$RightWindows = [byte[]](0x5c,0xe0)
$RemapCount = 2
$ReMap = [byte[]](
[Byte[]]::new(8) +
[BitConverter]::GetBytes(1+$RemapCount) +
$NullKey + $LeftWindows +
$NullKey + $RightWindows +
[Byte[]]::new(4)
)
$Splat = @{
'Path' = 'HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layout'
'Name' = 'ScanCode Map'
'Value' = $Remap
'Force' = $True
}
New-ItemProperty @Splat
powercfg.exe -x -monitor-timeout-ac 0
powercfg.exe -x -monitor-timeout-dc 0
powercfg.exe -x -disk-timeout-ac 0
@ -120,6 +142,13 @@ So richten Sie den Kiosk für die Veranstaltung ein.
$obj = Get-CimInstance -Namespace $namespaceName -ClassName $className
$obj.Configuration = $null
Set-CimInstance -CimInstance $obj
$Splat = @{
'Path' = 'HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layout'
'Name' = 'ScanCode Map'
'Force' = $True
}
Remove-ItemProperty @Splat
```
## Mit deinem bevorzugten Browser

View File

@ -85,9 +85,31 @@ How to set up the kiosk for the event.
{{< /tab >}}
{{< /tabs >}}
6. Disable sleep and hibernation:
6. Disable sleep and hibernation alongside the windows button:
```powershell
$NullKey = [byte[]]($null,$null)
$LeftWindows = [byte[]](0x5b,0xe0)
$RightWindows = [byte[]](0x5c,0xe0)
$RemapCount = 2
$ReMap = [byte[]](
[Byte[]]::new(8) +
[BitConverter]::GetBytes(1+$RemapCount) +
$NullKey + $LeftWindows +
$NullKey + $RightWindows +
[Byte[]]::new(4)
)
$Splat = @{
'Path' = 'HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layout'
'Name' = 'ScanCode Map'
'Value' = $Remap
'Force' = $True
}
New-ItemProperty @Splat
powercfg.exe -x -monitor-timeout-ac 0
powercfg.exe -x -monitor-timeout-dc 0
powercfg.exe -x -disk-timeout-ac 0
@ -120,6 +142,13 @@ How to set up the kiosk for the event.
$obj = Get-CimInstance -Namespace $namespaceName -ClassName $className
$obj.Configuration = $null
Set-CimInstance -CimInstance $obj
$Splat = @{
'Path' = 'HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layout'
'Name' = 'ScanCode Map'
'Force' = $True
}
Remove-ItemProperty @Splat
```
## With your favourite browser