Skip to content

Commit 9a3209f

Browse files
committed
Merge branch 'main' of https://github.com/Atlas-OS/Atlas
2 parents b52ebb1 + f77bf29 commit 9a3209f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/playbook/Executables/AtlasDesktop/3. General Configuration/CPU Idle/Disable Idle.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@echo off
22

33
:: Check if hyper threading is enabled
4-
powershell -NonI -NoP -C "$proc = Get-CimInstance Win32_Processor; if ([int]$proc.NumberOfLogicalProcessors -gt [int]$proc.NumberOfCores) { exit 262 }"
4+
powershell -NonI -NoP -C "Get-CimInstance Win32_Processor | Foreach-Object { if ([int]$_.NumberOfLogicalProcessors -gt [int]$_.NumberOfCores) { exit 262 } }"
55
if "%errorlevel%"=="262" goto :hyperThreading
66

77
if "%~1" neq "/silent" (
@@ -46,4 +46,4 @@ echo]
4646
echo %ESC%[1m%ESC%[33mPress any key to exit... %ESC%[?25l
4747

4848
pause > nul
49-
exit /b 1
49+
exit /b 1

src/playbook/Executables/AtlasDesktop/7. Security/Mitigations/Enable All Mitigations.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ whoami /user | find /i "S-1-5-18" > nul 2>&1 || (
2020
:main
2121
:: Enable Spectre and Meltdown
2222
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverrideMask" /t REG_DWORD /d "3" /f > nul
23-
powershell -NonI -NoP -C "$proc = (Get-CimInstance Win32_Processor).Name; $env:CPU = if ($proc | sls 'Intel' -Quiet) {'0'} elseif ($proc | sls 'AMD' -Quiet) {'64'}"
23+
powershell -NonI -NoP -C "$proc = (Get-CimInstance Win32_Processor | Select-Object -First 1).Name; $env:CPU = if ($proc | sls 'Intel' -Quiet) {'0'} elseif ($proc | sls 'AMD' -Quiet) {'64'}"
2424
if "%CPU%" neq "" (
2525
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverride" /t REG_DWORD /d "%CPU%" /f > nul
2626
)
@@ -57,4 +57,4 @@ reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" /v "M
5757

5858
echo Finished, please reboot your device for changes to apply.
5959
pause
60-
exit /b
60+
exit /b

0 commit comments

Comments
 (0)