# Elevate Command Prompt

JamieTheWolf

## Elevate Command Prompt

on Fri 17 Oct 2014 - 23:17
When using the OOBE post-Install cmd I had the problem, that I had to acknowledge the UAC messages for all installations.

Here a simple solution to this

`@ECHO OFFfor %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\sources\install.wim set CDROM=%%i:if not defined CDROM goto :eofecho Detected Installfolder on drive %CDROM%cd\@echo Administrative permissions required. Detecting permissions...net session >nul 2>&1if %errorLevel% == 0 ( echo Success: Administrative permissions confirmed.) else ( "%CDROM%\WinReducerPI\elevate.exe" -c "%~f0" exit)Title WINREDUCER POST INSTALLATIONColor F0`