Created
November 30, 2025 18:43
-
-
Save msenturk/e4042de498bb1b19f8d0601f7cc4c826 to your computer and use it in GitHub Desktop.
faceit-tpm-check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Write-Host "===== FACEIT Anti-Cheat Ultimate System Check =====" -ForegroundColor Cyan | |
| # ===================================================== | |
| # ADMINISTRATOR CHECK | |
| # ===================================================== | |
| $isAdmin = ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) | |
| if (-not $isAdmin) { | |
| Write-Host "`n[CRITICAL ERROR] Please run as Administrator." -ForegroundColor Red | |
| Read-Host "Press Enter to exit..." | |
| Exit | |
| } | |
| # ===================================================== | |
| # 1. WINDOWS VERSION | |
| # ===================================================== | |
| Write-Host "`n[1. Windows Version]" | |
| $win = Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" | |
| $build = $win.CurrentBuild | |
| $displayVer = $win.DisplayVersion | |
| Write-Host "Windows Build: $build (Version: $displayVer)" | |
| if ([int]$build -ge 19045) { Write-Host "Result: OK" -ForegroundColor Green } | |
| else { Write-Host "Result: OUTDATED (Update Windows)" -ForegroundColor Red } | |
| # ===================================================== | |
| # 2. BIOS & DISK (UEFI / GPT) | |
| # ===================================================== | |
| Write-Host "`n[2. BIOS & Disk Style]" | |
| $firmwareType = $env:firmware_type | |
| if ($firmwareType -eq "UEFI") { | |
| Write-Host "BIOS Mode: UEFI (OK)" -ForegroundColor Green | |
| $bootDisk = Get-Partition -DriveLetter C | Get-Disk | |
| if ($bootDisk.PartitionStyle -eq "GPT") { Write-Host "Disk Style: GPT (OK)" -ForegroundColor Green } | |
| else { Write-Host "Disk Style: MBR (FAIL - Needs GPT)" -ForegroundColor Red } | |
| } else { | |
| Write-Host "BIOS Mode: Legacy (FAIL - Needs UEFI)" -ForegroundColor Red | |
| } | |
| # ===================================================== | |
| # 3. SECURE BOOT | |
| # ===================================================== | |
| Write-Host "`n[3. Secure Boot]" | |
| if ($firmwareType -eq "UEFI") { | |
| try { | |
| if (Confirm-SecureBootUEFI) { Write-Host "Secure Boot: ENABLED (OK)" -ForegroundColor Green } | |
| else { Write-Host "Secure Boot: DISABLED (FAIL - Enable in BIOS)" -ForegroundColor Red } | |
| } catch { Write-Host "Error checking Secure Boot" -ForegroundColor Yellow } | |
| } else { Write-Host "Skipped (Legacy Mode)" -ForegroundColor DarkGray } | |
| # ===================================================== | |
| # 4. TPM 2.0 | |
| # ===================================================== | |
| Write-Host "`n[4. TPM 2.0]" | |
| try { | |
| $tpm = Get-Tpm | |
| if ($tpm.TpmPresent -and $tpm.TpmReady) { Write-Host "TPM: Enabled & Ready (OK)" -ForegroundColor Green } | |
| else { Write-Host "TPM: Disabled or Not Found (FAIL)" -ForegroundColor Red } | |
| } catch { Write-Host "TPM Check Failed" -ForegroundColor Red } | |
| # ===================================================== | |
| # 5. VIRTUALIZATION & MEMORY INTEGRITY | |
| # ===================================================== | |
| Write-Host "`n[5. Virtualization]" | |
| $virt = (Get-CimInstance Win32_Processor).VirtualizationFirmwareEnabled | |
| if ($virt) { Write-Host "VT-x/SVM: Enabled (OK)" -ForegroundColor Green } | |
| else { Write-Host "VT-x/SVM: Disabled (Recommended)" -ForegroundColor Yellow } | |
| $hvci = Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" -ErrorAction SilentlyContinue | |
| if ($hvci.Enabled -eq 1) { Write-Host "Core Isolation: ENABLED (Try disabling if AC fails)" -ForegroundColor Yellow } | |
| else { Write-Host "Core Isolation: DISABLED (OK)" -ForegroundColor Green } | |
| # ===================================================== | |
| # 6. BOOT CONFIGURATION (Test Signing / Debug) | |
| # ===================================================== | |
| Write-Host "`n[6. Boot Flags (Anti-Cheat Blockers)]" | |
| # We parse bcdedit output to see if bad flags are on | |
| $bcd = bcdedit /enum "{current}" | |
| if ($bcd -match "testsigning\s+Yes") { | |
| Write-Host "Test Signing: ON (FAIL - FACEIT will block this)" -ForegroundColor Red | |
| Write-Host "Action: Run 'bcdedit /set testsigning off' in Admin CMD" -ForegroundColor Yellow | |
| } else { | |
| Write-Host "Test Signing: OFF (OK)" -ForegroundColor Green | |
| } | |
| if ($bcd -match "debug\s+Yes") { | |
| Write-Host "Debug Mode: ON (FAIL - FACEIT will block this)" -ForegroundColor Red | |
| Write-Host "Action: Run 'bcdedit /set debug off' in Admin CMD" -ForegroundColor Yellow | |
| } else { | |
| Write-Host "Debug Mode: OFF (OK)" -ForegroundColor Green | |
| } | |
| Write-Host "`n===== Check Completed =====" -ForegroundColor Cyan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment