@echo off rem Installs the WhatIDo root CA certificate into Trusted Root on Windows. rem The script requests administrator rights automatically (UAC) unless rem -StoreLocation CurrentUser is passed. rem Examples: rem install-whatido-cert.cmd rem install-whatido-cert.cmd -Uninstall rem install-whatido-cert.cmd -StoreLocation CurrentUser setlocal set "ELEVATE=1" echo %* | findstr /I /C:"CurrentUser" >nul && set "ELEVATE=0" if "%ELEVATE%"=="1" ( net session >nul 2>&1 if errorlevel 1 ( echo Requesting administrator privileges... powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -ArgumentList '%*' -Verb RunAs" exit /b ) ) powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0install-whatido-cert.ps1" %* echo. pause