mirror of
https://github.com/MaxiFan/TunnelX.git
synced 2026-05-17 21:14:37 +03:00
13 lines
512 B
PowerShell
13 lines
512 B
PowerShell
# TunnelX - Run as Administrator
|
|
# WinDivert requires Administrator privileges to operate at kernel level
|
|
|
|
$exePath = "$PSScriptRoot\bin\Release\net8.0-windows\TunnelX.exe"
|
|
|
|
if (Test-Path $exePath) {
|
|
Start-Process -FilePath $exePath -Verb RunAs
|
|
Write-Host "TunnelX launched with Administrator privileges" -ForegroundColor Green
|
|
} else {
|
|
Write-Host "Error: TunnelX.exe not found. Please build the project first." -ForegroundColor Red
|
|
Write-Host "Expected path: $exePath" -ForegroundColor Yellow
|
|
}
|