mirror of
https://github.com/massgravel/get.activated.win.git
synced 2025-12-14 15:48:22 +01:00
Detect Sysnative path
This commit is contained in:
parent
dd429f89fa
commit
92828931c0
1 changed files with 4 additions and 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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue