@echo off
setlocal
set SCRIPT_DIR=%~dp0
echo Installing asdm CLI...
copy "%SCRIPT_DIR%asdm.exe" "C:\Windows\System32\asdm.exe" /Y
if errorlevel 1 (
  echo Trying with admin path...
  powershell -Command "Start-Process cmd -ArgumentList '/c copy \"%SCRIPT_DIR%asdm.exe\" \"C:\Windows\System32\asdm.exe\" /Y' -Verb RunAs"
)
echo Done! Run: asdm --help
pause
