Assuming you want to do it on windows 7 you can achieve it this way
1- Create this key in registry
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionAuthenticationLogonUIBackground]
"OEMBackground"=dword:00000001
2- Create this path if does not exist
C:WindowsSystem32oobeinfoackgrounds
3- Copy a jpeg file named backgroundDefault.jpg with a size less than 256 KB to the aforementioned path.
4- Reboot.
You can do all this in any language,even with a simple batch file.
More details
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…