File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/playbook/Executables/AtlasDesktop
3. General Configuration/CPU Idle Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
3
3
:: 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 } }"
5
5
if " %errorlevel% " == " 262" goto :hyperThreading
6
6
7
7
if " %~1 " neq " /silent" (
46
46
echo %ESC% [1m%ESC% [33mPress any key to exit... %ESC% [?25l
47
47
48
48
pause > nul
49
- exit /b 1
49
+ exit /b 1
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ whoami /user | find /i "S-1-5-18" > nul 2>&1 || (
20
20
:main
21
21
:: Enable Spectre and Meltdown
22
22
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'}"
24
24
if " %CPU% " neq " " (
25
25
reg add " HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v " FeatureSettingsOverride" /t REG_DWORD /d " %CPU% " /f > nul
26
26
)
@@ -57,4 +57,4 @@ reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" /v "M
57
57
58
58
echo Finished, please reboot your device for changes to apply.
59
59
pause
60
- exit /b
60
+ exit /b
You can’t perform that action at this time.
0 commit comments