docs(kiosk): Added script to disable windows shortcuts
All checks were successful
Build latest image / build-container (push) Successful in 1m27s
All checks were successful
Build latest image / build-container (push) Successful in 1m27s
This commit is contained in:
parent
215fcc9f91
commit
486115eb1b
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user