diff --git a/content/kiosk/setup.de.md b/content/kiosk/setup.de.md index 239319b..85cdb71 100644 --- a/content/kiosk/setup.de.md +++ b/content/kiosk/setup.de.md @@ -110,6 +110,16 @@ So richten Sie den Kiosk für die Veranstaltung ein. } 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-dc 0 powercfg.exe -x -disk-timeout-ac 0 @@ -136,20 +146,26 @@ So richten Sie den Kiosk für die Veranstaltung ein. 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 - $Splat = @{ - 'Path' = 'HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layout' - 'Name' = 'ScanCode Map' - 'Force' = $True - } - - Remove-ItemProperty @Splat - ``` + ```powershell + $namespaceName="root\cimv2\mdm\dmmap" + $className="MDM_AssignedAccess" + $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 + $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 diff --git a/content/kiosk/setup.en.md b/content/kiosk/setup.en.md index b40b673..e130166 100644 --- a/content/kiosk/setup.en.md +++ b/content/kiosk/setup.en.md @@ -110,6 +110,16 @@ How to set up the kiosk for the event. } 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-dc 0 powercfg.exe -x -disk-timeout-ac 0 @@ -149,6 +159,14 @@ How to set up the kiosk for the event. } 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