Re: Desktop Wallpaper & Group Policy

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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



.



Relevant Pages

  • Re: How to capture WMP events with script (and not HTML)?
    ... > must use SCRIPT FOR..EVENT tags. ... The generic and standard way to sink events from an object ... pages, like MSHTML and XMLHTTP, add another custom mechanism ... ActiveX controls because those controls only know about the ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Some Early Topics
    ... The same way anything else would be considered a de-facto standard. ... But invalid markup does _not_ appear to be widely accepted, ... standard than any other of their mistakes. ... etc.—and none would close the script tag on discovery of ETAGO. ...
    (comp.lang.javascript)
  • Re: RfD: N>R and NR>
    ... You are running backwards - generating HTML, ... You came close to an effective system for standard scripting functions ... in a shell script. ...
    (comp.lang.forth)
  • Re: preferred way of handling events
    ... browser developers must at least glance at the standards, ... bet that a standard approach will be more widely supported. ... script. ... for example - some browsers feature document.addEventListener, ...
    (comp.lang.javascript)