TMAegisBeta
Weitere Regeln für windows

Windows (desktop and server)

TMA-WIN2022-18.10.4.1

Ensure 'Allow a Windows app to share application data between users' is set to 'Disabled'

MittelStufe 2Automatisiertwindows

Beschreibung

Manages a Windows app's ability to share data between users who have installed the app. Data is shared through the SharedLocal folder. This folder is available through the Windows.Storage API. The recommended state for this setting is: Disabled.

So wird geprüft

Prüfmethode: Windows-Registrierung

registry
$bad = @(); $v = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\AppModel\StateManager' -Name 'AllowSharedLocalAppData' -ErrorAction SilentlyContinue).'AllowSharedLocalAppData'; if (-not ($null -ne $v -and @(0) -contains [int64]$v)) { $bad += 'AllowSharedLocalAppData=' + $v }; if ($bad.Count -eq 0) { 'compliant' } else { 'non-compliant: ' + ($bad -join ', ') }
Erwartete Ausgabe
compliant

So wird behoben

Behebungsmethode: Shell-Befehl

shell
if (-not (Test-Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\AppModel\StateManager')) { New-Item -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\AppModel\StateManager' -Force | Out-Null }; New-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\AppModel\StateManager' -Name 'AllowSharedLocalAppData' -Value 0 -PropertyType DWord -Force | Out-Null

Eigenschaften

Betriebssysteme
windows-server-2022-dc, windows-server-2022-ms
Tags
cis-convertedregistrywindows
Referenz
CIS Microsoft Windows Server 2022 Benchmark v5.1.0 - 18.10.4.1

Diesen Host prüfen

Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.

shell
tmaegis scan --target windows --level 2