Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- echo Enter the location of the file to make your background.
- echo Note: File must be a jpg under 256KB
- echo Note: This batch file must be run as an Administrator
- echo.
- set /p image= Image:
- reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background /f /v OEMBackground /t REG_DWORD /d 1
- IF NOT EXIST "%windir%\System32\Oobe\info\backgrounds\" mkdir "%windir%\System32\Oobe\info\backgrounds\"
- copy "%image%" "%windir%\System32\Oobe\info\backgrounds\backgroundDefault.jpg" /v /y
- :shadow
- echo.
- echo.
- echo Enter number for type of text shadow
- echo 0 - Light Shadow
- echo 1 - Dark Shadow
- echo 2 - No Shadow
- echo.
- set /p shadow= Number:
- if not "%shadow%"=="1" if not "%shadow%"=="2" if not "%shadow%"=="3" goto :error
- echo.
- echo.
- reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI /f /v ButtonSet /t REG_DWORD /d %shadow%
- pause
- exit
- :error
- echo Invalid input
- goto :shadow
Advertisement
Add Comment
Please, Sign In to add comment