w10install/scripts/disable-accountpicture.cmd

32 lines
653 B
Batchfile
Raw Normal View History

2021-01-14 00:43:00 +01:00
@echo off
set TARGET="%ALLUSERSPROFILE%\Microsoft\User Account Pictures"
2021-03-07 17:23:21 +01:00
rem empty logo (disables all logos on logon screen)
rem set LOGO=config\user-empty.png
rem windows logo taken from: http://pngimg.com/image/23601
set LOGO=config\windows-logo.png
2021-01-14 00:43:00 +01:00
echo ####### %0 #######
echo disabling account pictures on logon screen ...
2021-03-07 17:23:21 +01:00
for %%F in (
user-192
user
guest
) do (
move /Y %TARGET%\%%F.png %TARGET%\%%F.bak
copy /Y %LOGO% %TARGET%\%%F.png
)
2021-01-14 00:43:00 +01:00
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" ^
/v UseDefaultTile /t REG_DWORD /d 1 /f
echo ####### %0 #######