This script fixes the windows CIS Benchmark check 18.9.26.2: "Ensure 'Configures LSASS to run as a protected process' is set to 'Enabled: Enabled with UEFI Lock'."
The script modifies the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\RunAsPPL to a value of 1 (DWORD) to enable LSASS to run as a protected process. It then verifies that the value is correctly set. This addresses the CIS check for 'Ensure "Configures LSASS to run as a protected process" is set to "Enabled: Enabled with UEFI Lock"' by setting the required registry value. Note that this script directly modifies the registry and may not enforce the UEFI lock aspect, which is typically handled via Group Policy.
None This script does not require any parameters.
.\FixCisLsassProtectedProcess.ps1This script fixes the windows CIS Benchmark check 18.6.21.1: "Ensure 'Minimize the number of simultaneous connections to the Internet or a Windows Domain' is set to 'Enabled: 3 = Prevent Wi-Fi when on Ethernet'."
This script fixes the windows CIS Benchmark check 18.6.10.2: "Ensure 'Turn off Microsoft Peer-to-Peer Networking Services' is set to 'Enabled'."
This script fixes the windows CIS Benchmark check 18.10.42.6.3.1: "Ensure 'Prevent users and apps from accessing dangerous websites' is set to 'Enabled: Block'."
This script fixes the windows CIS Benchmark check 18.10.89.1: "Ensure 'Allow Remote Shell Access' is set to 'Disabled'."
The script modifies the Windows Registry to ensure remote shell access is disabled. It checks for administrative privileges, sets the required registry value, and verifies that the change was applied successfully.
This script fixes the windows CIS Benchmark check 18.10.90.1: "Ensure 'Allow clipboard sharing with Windows Sandbox' is set to 'Disabled'."
This script fixes the windows CIS Benchmark check 18.10.90.2: "Ensure 'Allow networking in Windows Sandbox' is set to 'Disabled'."
This script fixes the windows CIS Benchmark check 18.10.91.2.1: "Ensure 'Prevent users from modifying settings' is set to 'Enabled'."
This script fixes the windows CIS Benchmark check 18.10.92.2.4: "Ensure 'Remove access to "Pause updates" feature' is set to 'Enabled'."
The script ensures that the registry value SetDisablePauseUXAccess is set to 1 under the path HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate. It includes error handling and automatic verification to confirm the setting is applied correctly.
This script fixes the windows CIS Benchmark check 18.10.92.4.2: "Ensure 'Select when Preview Builds and Feature Updates are received' is set to 'Enabled: 180 or more days'."