Jump to content

Copy image file based on screen resolution.


Recommended Posts

Posted
The screen resolution is 1366x768 but if you use the script and a startup script it is using the 1600x1200 wallpaper. If I run it when I am logged into Windows it works fine.

Could you run the following as a startup script and then post the contents of the text file?

 

Add-Type -AssemblyName System.Windows.Forms
$Width  = [system.Windows.Forms.Screen]::PrimaryScreen.Bounds.Width
$Height = [system.Windows.Forms.Screen]::PrimaryScreen.Bounds.Height
$Ratio  = $Width/$Height

$Width, $Height, $Ratio -join ',' | Out-File -FilePath C:\Temp\StartupRes.txt -Force

Posted
The screen resolution is 1366x768 but if you use the script and a startup script it is using the 1600x1200 wallpaper.

here we go: 1024,768,1.33333333333333

That's really strange! Does the affected PC have only one display attached? Is it a VGA monitor?

Posted
Trying to think of some work arounds. What do you think of a scheduled task that runs a few minutes after booting?
Posted

On the PC that didn't work, is its monitor detected as a generic PnP monitor?

 

What do you think of a scheduled task that runs a few minutes after booting?

That sound like a much better idea. :)

  • 2 weeks later...
Posted
On the PC that didn't work, is its monitor detected as a generic PnP monitor?

 

 

That sound like a much better idea. :)

 

Been out off office for various reasons, will check in the morning.

  • 2 weeks later...
  • 2 weeks later...
Posted

You are using this for W7 Logon Backgrounds. W7 supports multiple sizes:

 

Untitled-1.png

 

Your backgroundDefault.jpg file must be for the highest resolution you have, if the system resolution is smaller, it will automatically look for backgroundRESOLUTION.jpg in the same Folder (System32\oobe\info\backgrounds)

 

Saves you fiddling around with scripts, you can just make a few images, name them appropriately and use them on every machine.

 

(Sorry if this answer has already been suggested)

Posted
You are using this for W7 Logon Backgrounds. W7 supports multiple sizes:

 

[ATTACH=CONFIG]24133[/ATTACH]

 

Your backgroundDefault.jpg file must be for the highest resolution you have, if the system resolution is smaller, it will automatically look for backgroundRESOLUTION.jpg in the same Folder (System32\oobe\info\backgrounds)

 

Saves you fiddling around with scripts, you can just make a few images, name them appropriately and use them on every machine.

 

(Sorry if this answer has already been suggested)

 

This is Windows 8 though.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...