diff options
| author | WindowsAddict | 2025-08-10 23:33:37 +0000 |
|---|---|---|
| committer | WindowsAddict | 2025-08-10 23:33:37 +0000 |
| commit | 92828931c05bde114b94c47354365a9b7b140377 (patch) | |
| tree | 8b2c009f53b0a8b9f565d2119e5aca86adcf38f5 | |
| parent | dd429f89fa287784d6816a15bfeddd4d0a8dbc67 (diff) | |
| download | massgravel.github.io-92828931c05bde114b94c47354365a9b7b140377.zip | |
Detect Sysnative path
| -rw-r--r-- | index.html | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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()
}
|
