2025-12-08 10:32:49 +01:00
|
|
|
@echo off
|
|
|
|
|
REM ========================================
|
|
|
|
|
REM NoID Privacy - Interactive Launcher
|
|
|
|
|
REM ========================================
|
|
|
|
|
REM
|
|
|
|
|
REM This script launches NoIDPrivacy-Interactive.ps1 with
|
|
|
|
|
REM Administrator privileges (auto-elevation).
|
|
|
|
|
REM
|
|
|
|
|
REM Author: NexusOne23
|
2026-01-07 18:46:14 +01:00
|
|
|
REM Version: 2.2.3
|
2025-12-08 10:32:49 +01:00
|
|
|
REM ========================================
|
|
|
|
|
|
|
|
|
|
setlocal
|
|
|
|
|
|
2026-01-07 18:46:14 +01:00
|
|
|
title NoID Privacy v2.2.3
|
2025-12-08 10:32:49 +01:00
|
|
|
|
|
|
|
|
REM Get the directory where this batch file is located
|
|
|
|
|
set "SCRIPT_DIR=%~dp0"
|
|
|
|
|
|
2025-12-09 10:48:12 +01:00
|
|
|
REM Check if already running as administrator (robust method that works even if Server service is disabled)
|
|
|
|
|
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
|
2025-12-08 10:32:49 +01:00
|
|
|
if %errorLevel% == 0 (
|
|
|
|
|
REM Already admin, run PowerShell script directly
|
|
|
|
|
echo Running NoID Privacy Interactive Menu with Administrator privileges...
|
|
|
|
|
echo.
|
2025-12-22 23:17:22 +01:00
|
|
|
"%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass -NoProfile -File "%SCRIPT_DIR%NoIDPrivacy-Interactive.ps1" %*
|
2025-12-08 10:32:49 +01:00
|
|
|
pause
|
|
|
|
|
exit /b
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
REM Not admin - request elevation
|
|
|
|
|
echo Requesting Administrator privileges...
|
|
|
|
|
echo.
|
|
|
|
|
|
|
|
|
|
REM Use PowerShell to elevate and run the script
|
2025-12-22 23:17:22 +01:00
|
|
|
"%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe" -Command "Start-Process '%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe' -ArgumentList '-ExecutionPolicy Bypass -NoProfile -File \"%SCRIPT_DIR%NoIDPrivacy-Interactive.ps1\" %*' -Verb RunAs"
|
2025-12-08 10:32:49 +01:00
|
|
|
|
|
|
|
|
REM Exit this non-elevated instance
|
|
|
|
|
exit /b
|