Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, February 3, 2017 3:27 PM
Hi All,
I would like to get help here on setting corporate wallpaper through GPO. Following are the requirement.
- We do have different sized images for corporate wallpaper, which needs to set for different resolution.
- Most users are having dual monitors. Correctly sized wallpaper needs to be set for both monitors.
- All clients are running Windows 7 and servers are running Windows 2012 R2, which means PowerShell scripts can be set as logon script.
I did check many forum topics, but none seems to matching my exact requirement. So, please help.
Thank you 🙂
All replies (6)
Friday, February 3, 2017 4:20 PM
Post in GPO forum for how to use GPO to set wallpaper.
\(ツ)_/
Friday, February 3, 2017 6:41 PM
take a look to free sysinternals BGInfo Tool. It work's fine
Chris
Saturday, February 4, 2017 9:25 AM
I wasn't asking for complete code. Sorry that the question gave such an impression. I am pasting the code I have so far, which seems to apply only on primary monitor. I need help only applying wallpaper on additional monitors as well. Most users are having dual monitors and couple of users are having 4 monitors as well.
$sourcefolder = "\\domain.com\NETLOGON\Wallpapers"
$targetfolder = $env:SystemRoot
$desktops = Get-WmiObject -Class Win32_DesktopMonitor | Where-Object { $_.Availability -eq "3" }
foreach ($desktop in $desktops)
{
# Generate wallpaper file name and path
$wp = "Wallpaper_$($desktop.ScreenWidth)x$($desktop.ScreenHeight).jpg"
$wppath = "$($sourcefolder)\$($wp)"
if (Test-Path -LiteralPath $wppath)
{
# Copy walpaper file
robocopy $sourcefolder $targetfolder $wp /NFL /NDL /NJH /NJS
# Set wallpaper for the current user
Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "WallPaper" -Value "$($targetfolder)\$($wp)"
rundll32.exe user32.dll, UpdatePerUserSystemParameters
}
}
Saturday, February 4, 2017 12:53 PM
You don't have to do this. It can all be set in Group Policy very easily. You will find that this method will create issues down the road.
In modern Window we use resizable images so one image works at all resolutions. You are approaching this a if all of you systems are Windows XP or earlier.
It takes one setting in GP to do this and it can be changed very easily. In modern Windows you do not want to add thing like this to your logon scripts. It is an old and not longer necessary method.
\(ツ)_/
Saturday, February 4, 2017 2:55 PM
You don't have to do this. It can all be set in Group Policy very easily. You will find that this method will create issues down the road.
In modern Window we use resizable images so one image works at all resolutions. You are approaching this a if all of you systems are Windows XP or earlier.
It takes one setting in GP to do this and it can be changed very easily. In modern Windows you do not want to add thing like this to your logon scripts. It is an old and not longer necessary method.
\(ツ)_/
Please let me know how or point to the right direction where I can get info on this.
Saturday, February 4, 2017 5:26 PM
\(ツ)_/