From 92828931c05bde114b94c47354365a9b7b140377 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Mon, 11 Aug 2025 05:03:37 +0530 Subject: [PATCH] Detect Sysnative path --- index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.html b/index.html index e9c54c9..bf7bfdb 100644 --- a/index.html +++ b/index.html @@ -120,6 +120,10 @@ if (-not $args) { } if ($psv -lt 3) { + if (Test-Path "$env:SystemRoot\Sysnative") { + Write-Warning "Command is running with x86 Powershell, run it with x64 Powershell instead..." + return + } $p = saps -FilePath $env:ComSpec -ArgumentList "/c """"$FilePath"" -el -qedit $args""" -Verb RunAs -PassThru $p.WaitForExit() }