diff --git a/content/kiosk/setup.de.md b/content/kiosk/setup.de.md index ee016ad..239319b 100644 --- a/content/kiosk/setup.de.md +++ b/content/kiosk/setup.de.md @@ -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 diff --git a/content/kiosk/setup.en.md b/content/kiosk/setup.en.md index eccdf00..b40b673 100644 --- a/content/kiosk/setup.en.md +++ b/content/kiosk/setup.en.md @@ -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