SHOW:
|
|
- or go back to the newest paste.
| 1 | @echo off | |
| 2 | echo Enter the location of the file to make your background. | |
| 3 | echo Note: File must be a jpg under 256KB | |
| 4 | echo Note: This batch file must be run as an Administrator | |
| 5 | echo. | |
| 6 | ||
| 7 | ||
| 8 | set /p image= Image: | |
| 9 | ||
| 10 | IF NOT EXIST "%windir%\System32\Oobe\info\backgrounds\" mkdir "%windir%\System32\Oobe\info\backgrounds\" | |
| 11 | copy "%image%" "%windir%\System32\Oobe\info\backgrounds\backgroundDefault.jpg" /v /y | |
| 12 | ||
| 13 | reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background /f /v OEMBackground /t REG_DWORD /d 1 | |
| 14 | ||
| 15 | ||
| 16 | :shadow | |
| 17 | ||
| 18 | echo. | |
| 19 | echo. | |
| 20 | echo Enter number for type of text shadow | |
| 21 | echo 0 - Light Shadow | |
| 22 | echo 1 - Dark Shadow | |
| 23 | echo 2 - No Shadow | |
| 24 | echo. | |
| 25 | ||
| 26 | set /p shadow= Number: | |
| 27 | ||
| 28 | - | if not "%shadow%"=="1" if not "%shadow%"=="2" if not "%shadow%"=="3" goto :error |
| 28 | + | if not "%shadow%"=="0" if not "%shadow%"=="1" if not "%shadow%"=="2" goto :error |
| 29 | ||
| 30 | echo. | |
| 31 | echo. | |
| 32 | ||
| 33 | reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI /f /v ButtonSet /t REG_DWORD /d %shadow% | |
| 34 | ||
| 35 | pause | |
| 36 | exit | |
| 37 | ||
| 38 | :error | |
| 39 | ||
| 40 | echo Invalid input | |
| 41 | goto :shadow |