docs(kiosk): Disable widgets
All checks were successful
Build latest image / build-container (push) Successful in 1m26s

This commit is contained in:
Nicolai Ort 2025-04-25 14:33:22 +02:00
parent 486115eb1b
commit 1497fa19d0
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
2 changed files with 48 additions and 14 deletions

View File

@ -110,6 +110,16 @@ So richten Sie den Kiosk für die Veranstaltung ein.
} }
New-ItemProperty @Splat New-ItemProperty @Splat
$RegistryPath = "HKLM:\SOFTWARE\Policies\Microsoft\Dsh"
$Name = "AllowNewsAndInterests"
$Value = 0
If (-not (Test-Path $RegistryPath)) {
New-Item -Path $RegistryPath -Force | Out-Null
}
New-ItemProperty -Path $RegistryPath -Name $Name -Value $Value -DWORD -Force | Out-Null
powercfg.exe -x -monitor-timeout-ac 0 powercfg.exe -x -monitor-timeout-ac 0
powercfg.exe -x -monitor-timeout-dc 0 powercfg.exe -x -monitor-timeout-dc 0
powercfg.exe -x -disk-timeout-ac 0 powercfg.exe -x -disk-timeout-ac 0
@ -147,8 +157,14 @@ So richten Sie den Kiosk für die Veranstaltung ein.
'Name' = 'ScanCode Map' 'Name' = 'ScanCode Map'
'Force' = $True 'Force' = $True
} }
Remove-ItemProperty @Splat Remove-ItemProperty @Splat
$RegistryPath = "HKLM:\SOFTWARE\Policies\Microsoft\Dsh"
$Name = "AllowNewsAndInterests"
If (Test-Path -Path $RegistryPath) {
If (Get-ItemProperty -Path $RegistryPath -Name $Name -ErrorAction SilentlyContinue) {
Remove-ItemProperty -Path $RegistryPath -Name $Name -Force | Out-Null
}
}
``` ```
## Mit deinem bevorzugten Browser ## Mit deinem bevorzugten Browser

View File

@ -110,6 +110,16 @@ How to set up the kiosk for the event.
} }
New-ItemProperty @Splat New-ItemProperty @Splat
$RegistryPath = "HKLM:\SOFTWARE\Policies\Microsoft\Dsh"
$Name = "AllowNewsAndInterests"
$Value = 0
If (-not (Test-Path $RegistryPath)) {
New-Item -Path $RegistryPath -Force | Out-Null
}
New-ItemProperty -Path $RegistryPath -Name $Name -Value $Value -DWORD -Force | Out-Null
powercfg.exe -x -monitor-timeout-ac 0 powercfg.exe -x -monitor-timeout-ac 0
powercfg.exe -x -monitor-timeout-dc 0 powercfg.exe -x -monitor-timeout-dc 0
powercfg.exe -x -disk-timeout-ac 0 powercfg.exe -x -disk-timeout-ac 0
@ -149,6 +159,14 @@ How to set up the kiosk for the event.
} }
Remove-ItemProperty @Splat Remove-ItemProperty @Splat
$RegistryPath = "HKLM:\SOFTWARE\Policies\Microsoft\Dsh"
$Name = "AllowNewsAndInterests"
If (Test-Path -Path $RegistryPath) {
If (Get-ItemProperty -Path $RegistryPath -Name $Name -ErrorAction SilentlyContinue) {
Remove-ItemProperty -Path $RegistryPath -Name $Name -Force | Out-Null
}
}
``` ```
## With your favourite browser ## With your favourite browser