Logon Wallpaper - automatically change w/ every logon

ltwally

New member
Member
Local time
3:16 AM
Messages
29
My method for automatically changing the Windows 7 logon/logoff wallpaper with every logon.

Step 1: Use one of the many guides on the web to enable custom/oem logon wallpaper, such as Brink's: http://www.sevenforums.com/tutorials/5382-log-screen-change.html


Step 2: Copy whatever JPEG images you want to use for logon/logoff wallpaper in to C:\Windows\System32\oobe\info\backgrounds
You do not need to rename them -- just so long as their file extension is JPG or JPEG they'll be fine.


Step 3: Copy the following into C:\Windows\System32\oobe\info\backgrounds\rand.vbs
Code:
'=========================================
'rand.vbs
'Random logon/logoff wallpaper generator
'Author: [email protected]
'=========================================

Option Explicit
Dim objFSO, objFolder, objFile, colFiles
Dim min, max, result, aWallpaper(100)

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(".\")
min = 1
max = 0

Set colFiles = objFolder.Files
For Each objFile in colFiles
	If ((LCase(Right(CStr(objFile.Name), 3)) = "jpg") Or (LCase(Right(CStr(objFile.Name), 4)) = "jpeg")) Then
		If NOT (CStr(objFile.Name) = "backgroundDefault.jpg") Then
			max = max + 1
			aWallpaper(max) = CStr(objFile.Name)
		End If
	End If
Next

Randomize
result = Int((max-min+1)*Rnd+min)

objFSO.CopyFile ".\" & aWallpaper(result), ".\" & "backgroundDefault.jpg", True
*note: if you have more than 100 images, change aWallpaper(100) to a larger value, such as aWallpaper(1000).


Step 4: Create a custom task in the Task Scheduler with the following properties.

unledbpi.png

You need to set the permissions here for an administrator account that has access to C:\Windows\System32\oobe\info\backgrounds

unled2st.png


unled3h.png

Add arguments: C:\Windows\System32\oobe\info\backgrounds\rand.vbs
Startup in: C:\Windows\System32\oobe\info\backgrounds

unled4ln.png





It's a bit more complicated than just installing a program to do it for you... but after you get it going, it zero-management; just drop whatever images you want to use in that folder.
 

My Computer My Computer

OS
Windows 7 Ultimate x64

My Computer My Computer

Computer type
PC/Desktop
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD FX(tm)-6300 Six-Core Processor
Motherboard
Gigabyte Technology Co., Ltd. 970A-UD3P
Memory
8.00 GB
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
VIA High Definition Audio
Monitor(s) Displays
Acer S230HLAbii 23.0" Monitor
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) SAMSUNG SSD PM830 2.5" 7mm 128GB ATA Device (2) TOSHIBA DT01ACA200 ATA Device (3) TOSHIBA MQ01ABD100 ATA Device
PSU
Corsair CX 600W 80+ Bronze Certified Semi-Modular ATX Power
Case
Apevia X-DREAMER4-PK ATX Mid Tower Case
Good idea. Thanks
 

My Computer My Computer

OS
Windows 7 Ultimate x64
I also am having problems getting this to work. DO you have team viewer and could look?
 

My Computer My Computer

Computer type
PC/Desktop
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD FX(tm)-6300 Six-Core Processor
Motherboard
Gigabyte Technology Co., Ltd. 970A-UD3P
Memory
8.00 GB
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
VIA High Definition Audio
Monitor(s) Displays
Acer S230HLAbii 23.0" Monitor
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) SAMSUNG SSD PM830 2.5" 7mm 128GB ATA Device (2) TOSHIBA DT01ACA200 ATA Device (3) TOSHIBA MQ01ABD100 ATA Device
PSU
Corsair CX 600W 80+ Bronze Certified Semi-Modular ATX Power
Case
Apevia X-DREAMER4-PK ATX Mid Tower Case
Zero,

Where are you getting hung up at?
 

My Computer My Computer

OS
Windows 7 Ultimate x64
Zero,

Where are you getting hung up at?

I have all the Task Scheduler setup right and I have several images in the backgrounds folder and it will not change even after a restart.
 

My Computer My Computer

Computer type
PC/Desktop
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD FX(tm)-6300 Six-Core Processor
Motherboard
Gigabyte Technology Co., Ltd. 970A-UD3P
Memory
8.00 GB
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
VIA High Definition Audio
Monitor(s) Displays
Acer S230HLAbii 23.0" Monitor
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) SAMSUNG SSD PM830 2.5" 7mm 128GB ATA Device (2) TOSHIBA DT01ACA200 ATA Device (3) TOSHIBA MQ01ABD100 ATA Device
PSU
Corsair CX 600W 80+ Bronze Certified Semi-Modular ATX Power
Case
Apevia X-DREAMER4-PK ATX Mid Tower Case
You can verify that the script is functional by deleting "backgroundDefault.jpg" and then double-clicking the script to run it.

If it runs, it will copy one of your JPG/JPEG images to "backgroundDefault.jpg".

If nothing happens, then there is a problem w/ the script or with permissions.
 

My Computer My Computer

OS
Windows 7 Ultimate x64
You can verify that the script is functional by deleting "backgroundDefault.jpg" and then double-clicking the script to run it.

If it runs, it will copy one of your JPG/JPEG images to "backgroundDefault.jpg".

If nothing happens, then there is a problem w/ the script or with permissions.

Okay, I have it working now. Is there a way to get it to change before windows starts? It changes when I log off and stays the same when I restart until I log off again.
 

My Computer My Computer

Computer type
PC/Desktop
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD FX(tm)-6300 Six-Core Processor
Motherboard
Gigabyte Technology Co., Ltd. 970A-UD3P
Memory
8.00 GB
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
VIA High Definition Audio
Monitor(s) Displays
Acer S230HLAbii 23.0" Monitor
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) SAMSUNG SSD PM830 2.5" 7mm 128GB ATA Device (2) TOSHIBA DT01ACA200 ATA Device (3) TOSHIBA MQ01ABD100 ATA Device
PSU
Corsair CX 600W 80+ Bronze Certified Semi-Modular ATX Power
Case
Apevia X-DREAMER4-PK ATX Mid Tower Case
Check the task's Triggers. There is an option for "at startup" that might suite you.

The reason I do not do this is that I do not want any additional tasks running during system startup. The way I have this task set, it doesn't run till 15 minutes after logon.

You could fish for the shutdown event and tell it to run on that... though I'm not sure if that would work (launching a new process while the system is shutting down), or work reliably.
 

My Computer My Computer

OS
Windows 7 Ultimate x64
Check the task's Triggers. There is an option for "at startup" that might suite you.

The reason I do not do this is that I do not want any additional tasks running during system startup. The way I have this task set, it doesn't run till 15 minutes after logon.

You could fish for the shutdown event and tell it to run on that... though I'm not sure if that would work (launching a new process while the system is shutting down), or work reliably.

Setting the option to "At startup" doesn't work at all. Hmm any help?
 

My Computer My Computer

Computer type
PC/Desktop
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD FX(tm)-6300 Six-Core Processor
Motherboard
Gigabyte Technology Co., Ltd. 970A-UD3P
Memory
8.00 GB
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
VIA High Definition Audio
Monitor(s) Displays
Acer S230HLAbii 23.0" Monitor
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) SAMSUNG SSD PM830 2.5" 7mm 128GB ATA Device (2) TOSHIBA DT01ACA200 ATA Device (3) TOSHIBA MQ01ABD100 ATA Device
PSU
Corsair CX 600W 80+ Bronze Certified Semi-Modular ATX Power
Case
Apevia X-DREAMER4-PK ATX Mid Tower Case
This is not something I have tried before.

However, if you're going to set it to run at startup, you might also need to change the parameters on the task's General tab to "run whether a user is logged in or not".

There is the possibility you'll also need to change the user credentials to LOCAL SYSTEM -- though I would try it without doing that, first.
 

My Computer My Computer

OS
Windows 7 Ultimate x64
If you happen to have TeamViewer could you take a look for me?
 

My Computer My Computer

Computer type
PC/Desktop
OS
Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD FX(tm)-6300 Six-Core Processor
Motherboard
Gigabyte Technology Co., Ltd. 970A-UD3P
Memory
8.00 GB
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
VIA High Definition Audio
Monitor(s) Displays
Acer S230HLAbii 23.0" Monitor
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) SAMSUNG SSD PM830 2.5" 7mm 128GB ATA Device (2) TOSHIBA DT01ACA200 ATA Device (3) TOSHIBA MQ01ABD100 ATA Device
PSU
Corsair CX 600W 80+ Bronze Certified Semi-Modular ATX Power
Case
Apevia X-DREAMER4-PK ATX Mid Tower Case
Sorry - but I have never done what you are attempting and, honestly, have neither the time or the inclination to test it out, either.

Maybe someone else has experience running a VBScript from the task scheduler "at startup"?
 

My Computer My Computer

OS
Windows 7 Ultimate x64
I was running into the same issues until i did a little more research and found that the images will need to be less than 256kb or else they will not work. I know it's been awhile, but I hope this info can help someone :) thanks for the tut btw, works great :)
 

My Computer My Computer

OS
Windows 7 Ultimate x64

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP (HP-P6212F)
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Pentium(R) Dual-Core CPU E5300 @ 2.60GHz
Motherboard
PEGATRON CORPORATION Benicia
Memory
6.00 GB
Graphics Card(s)
Intel(R) G33/G31 Express Chipset Family
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
24'' HP WS LCD
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) ATA Hitachi HDT72106 SCSI Disk Device (2) Generic- Compact Flash USB Device (3) Generic- MS/MS-Pro USB Device (4) Generic- SD/MMC USB Device (5) Generic- SM/xD-Picture USB Device (6) Verbatim STORE N GO USB Device
Keyboard
Logitech G510s
Mouse
Logitech Trackball M570
Antivirus
Microsoft Security Essentials / Malwarebytes
Browser
IE / Firefox / Chrome

Thanks for the tip.

Hahaha. If this had been around a couple years ago, I'd never have gone to the trouble to write a VBScript to handle it.

On the flip side, my little VBScript does not require installing additional software; everything necessary is included in Windows, as long as you're willing to spend 5 minutes setting everything up. If not, then lsrotator is probably for you.
 

My Computer My Computer

OS
Windows 7 Ultimate x64
Back
Top