diff options
Diffstat (limited to '0-win10prep.bat')
-rw-r--r-- | 0-win10prep.bat | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/0-win10prep.bat b/0-win10prep.bat index ef9997f..7f50471 100644 --- a/0-win10prep.bat +++ b/0-win10prep.bat @@ -9,10 +9,19 @@ echo. echo Please review and be aware of what this script does before running it. echo There is no uninstaller, and backups won't be created. echo. -echo You won't be prompted any further. -echo Press [enter] to begin. -echo. -set /p= +rem check permissions +net session >nul 2>&1 +if %errorLevel% == 0 ( + echo You won't be prompted any further. + echo Press [enter] to begin. + echo. + set /p= +) else ( + echo This script requires administrator rights. + echo Press any key to exit + pause >nul + exit +) rem Process <NUL set /p=:: Activating Windows... |