Re: Desktop Wallpaper & Group Policy
- From: "Dave Britt" <davebritt@xxxxxxxxxxx>
- Date: Fri, 12 May 2006 16:28:35 +0100
Giles,
Good to hear from you. Glad you are keeping well.
You could use a script at logon to check for several wallpaper's in the
registry and reset the value for next logon if you didn't like the current
selection. You would also need to make sure that the four standard
wallpapers were configure to read Only to avoid users replacing the file
names.
Script to get you started
-------------------------------------
Option Explicit
Dim objShell
Dim strWallRegKey1,strWallRegKey2,strWallRegkey3,strWallpaper
Set objShell = CreateObject("WScript.Shell")
strWallRegKey1="HKCU\Control Panel\Desktop\ConvertedWallpaper"
strWallRegKey2="HKCU\Control Panel\Desktop\OriginalWallpaper"
strWallRegKey3="HKCU\Control Panel\Desktop\Wallpaper"
strWallpaper = objShell.RegRead (strWallRegKey3)
wscript.echo strWallpaper
Select case strWallPaper
Case "C:\WINDOWS\Web\Wallpaper\Ascent.jpg" wscript.quit
Case "C:\WINDOWS\Web\Wallpaper\Autumn.jpg" wscript.quit
Case "C:\WINDOWS\Web\Wallpaper\Azul.jpg" wscript.quit
Case "C:\WINDOWS\Web\Wallpaper\Bliss.bmp" wscript.quit
Case else ResetWallpaper
End select
Sub ResetWallpaper
objShell.RegWrite strWallRegKey1, "C:\WINDOWS\Web\Wallpaper\bliss.bmp" ,
"REG_SZ"
objShell.RegWrite strWallRegKey2, "C:\WINDOWS\Web\Wallpaper\bliss.bmp" ,
"REG_SZ"
objShell.RegWrite strWallRegKey3, "C:\WINDOWS\Web\Wallpaper\bliss.bmp" ,
"REG_SZ"
objShell.LogEvent LogINFO,"The Standard Wallpaper has been re-set on this
machine."
End sub
--------------
The script reads the regisrty and checks the keys and uses the sub to reset
to a standard. I have added a log event for tracking purposes.
Hope this helps. Let me know how you get on.
Dave Britt
<gilesfunnell@xxxxxxxxx> wrote in message
news:1147416017.207880.76460@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi All,
Got a slightly tricky one here and I hope someone can help. I'm
currently trying to implement a standard desktop theme for our end
users and part of this will be standard company wallpapers. I've got
no problem enforcing GP with just one background but does anyone have
any ideas how I could restrict it to 6 particular backgrounds? I've
got 6 .jpg's for different sectors within our compnay and I'd like the
users to be able to choose whichever one they'd like but not be able to
put their own personal backgrounds in.
If anyone's got any ideas or advice I'd be most grateful.
Cheers!!
Giles
.
- References:
- Desktop Wallpaper & Group Policy
- From: gilesfunnell
- Desktop Wallpaper & Group Policy
- Prev by Date: windows classic view
- Next by Date: Re: windows classic view
- Previous by thread: Desktop Wallpaper & Group Policy
- Next by thread: Hidden folders
- Index(es):
Relevant Pages
|