Script:
echo F | xcopy C:\Windows\System32\BgInfo\BGInfo.bmp C:\Windows\System32\oobe\info\backgrounds\backgroundDefault.jpg /F /D /Y
Without echo F, script prompts for is the destination file or directory. echo 'f' - for file or 'd' for directory before the xcopy command using pipe symbol "|" on the same line
If anyone in the future wants to use this script to display IPv4 only addresses in BGInfo, here it is.
strMsg = "" strComputer = "." Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set IPConfigSet = objWMIService.ExecQuery("Select IPAddress from Win32_NetworkAdapterConfiguration WHERE IPEnabled = 'True'") For Each IPConfig in IPConfigSet If Not IsNull(IPConfig.IPAddress) Then For i = LBound(IPConfig.IPAddress) to UBound(IPConfig.IPAddress) If Not Instr(IPConfig.IPAddress(i), ":") > 0 Then strMsg = strMsg & IPConfig.IPAddress(i) & vbcrlf End If Next End If Next Echo strMsg
Enabling Custom Backgrounds
This feature is disabled by default, so you’ll have to enable it from the Registry Editor. You can also use the Group Policy Editor if you have a Professional version of Windows – scroll down a bit for the Group Policy Editor method.
Launch the Registry Editor by typing regedit into the search box in the Start menu and pressing Enter.
In the Registry Editor, navigate to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background
You’ll see an DWORD value named OEMBackground. If you don’t see it, right-click in the right pane, point to the New submenu and create a new DWORD value with this name.
Double-click the OEMBackground value and set its value to 1.
Note that selecting a new theme in the Appearance and Personalization window will “unset” this registry value. Selecting a theme will change the value of the key to the value stored in the theme’s .ini file, which is probably 0 – if you change your theme, you’ll have to perform this registry tweak again.
gpedit.msc
If you have access to the Group Policy Editor, launch gpedit.msc from the Start menu.
Navigate to the following section in the Group Policy Editor window:
Computer Configuration\Administrative Templates\System\Logon
You’ll find a setting named “Always use custom login background.” Double-click it and set it to Enabled.
Setting An Image
Your image file must be less than 256 KB in size. It’s also a good idea to use an image file that matches the resolution of your monitor, so it won’t look stretched.
Windows looks for the custom logon screen background image in the following directory:
C:\Windows\System32\oobe\info\backgrounds
By default, the info and backgrounds folders don’t exist. Navigate to the C:\Windows\System32\oobe folder and create them yourself by right-clicking inside the folder, pointing to New, and selecting New Folder.
Copy your desired background image to the backgrounds folder and name it backgroundDefault.jpg.
The change will take effect immediately – no system reboot required. The first time you log out or lock your screen (try the WinKey-L keyboard shortcut), you’ll see your new background.
Convert BMP to JPG:
No comments:
Post a Comment