Skip to content

Commit

Permalink
fix(disable fth): syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Apr 4, 2024
1 parent 00e2c63 commit b804f4e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/playbook/Configuration/tweaks/performance/disable-fth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ actions:

- !powerShell:
command: >-
if ((Get-CimInstance -Class Win32_ComputerSystem).SystemType -match 'ARM64') -or ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64') {
Write-Output "ARM detected, FTH doesn't exist.";
Remove-Item -Path """$([Environment]::GetFolderPath('Windows'))\AtlasDesktop\7. Security\Mitigations\Fault Tolerant Heap""" -Force -Recurse
if (((Get-CimInstance -Class Win32_ComputerSystem).SystemType -match 'ARM64') -or ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64')) {
Write-Output 'ARM detected, FTH doesn't exist.';
Remove-Item -Path """$([Environment]::GetFolderPath('Windows'))\AtlasDesktop\7. Security\Mitigations\Fault Tolerant Heap""" -Force -Recurse;
exit 2000
};
rundll32.exe fthsvc.dll,FthSysprepSpecialize
Expand Down

0 comments on commit b804f4e

Please sign in to comment.