How to change Wallpaper / Background on pc

(imported topic written by makking91)

Hi,

Sorry, I know this is a totally newbie question, but I need to ask it anyway, as I keep getting stuck on this. Have tried some of the code in the forums on this, so I must be doing something wrong. Can push patches and apps no problem, but this seemingly simple task has got me stumped.

How can I use the Software Distribution Wizard to copy a file from the BES Console server to a pc, and then set the Windows Desktop on the pc to use the new file as the background image?

Thanks!

Mak

(imported comment written by Lee Wei)

Makking,

Maybe you can take a look at this post:

http://forum.bigfix.com/viewtopic.php?id=2989

Lee Wei

(imported comment written by makking91)

Lee,

Thanks. Actually, I studied that post for a while before my original post, and the three steps didn’t make sense to me. In case it helps, here is what I have for an action to just copy the file, fis.bmp, that fails:

download http://bes.nycecorp.net:52311/Uploads/5de84c11168201b4394cf8e613de997228ba630e/FISBMP.tmp

continue if {(size of it = 19073 AND sha1 of it = “5de84c11168201b4394cf8e613de997228ba630e”) of file “FISBMP.tmp” of folder “__Download”}

extract FISBMP.tmp

wait __Download\copy “C:\Software Packages for Deployment\FIS BMP\fis.bmp” “c:\fis.bmp”

Thanks!

Mak

(imported comment written by BenKus)

Hi Mak,

If you want to copy the file, you can do something like this:

download http://bes.nycecorp.net:52311/Uploads/5 … FISBMP.tmp
continue if {(size of it = 19073 AND sha1 of it = “5de84c11168201b4394cf8e613de997228ba630e”) of file “FISBMP.tmp” of folder “__Download”}

extract FISBMP.tmp

copy “__Download\fis.bmp” “c:\fis.bmp”

Ben

(imported comment written by makking91)

Ben,

Thanks, the copy worked good. Now I am working on getting the registry changed to add the NoChangingWallpaper key. I have tried using the Registry Wizard both ways (Specify a Registry Value and Import a .reg file.) Both Tasks say completed, but the registry is not updated in either instance. Using the Wizard to Importing the .reg file, here is my Action Script:

action uses wow64 redirection false

download http://bes.nycecorp.net:52311/Uploads/4aacc720c3cca72c3a11ad12cad098acaaa28e0c/NoChangingWallpaperreg.tmp

continue if {(size of it = 269 AND sha1 of it = “4aacc720c3cca72c3a11ad12cad098acaaa28e0c”) of file “NoChangingWallpaperreg.tmp” of folder “__Download”}

extract NoChangingWallpaperreg.tmp

waithidden regedit /s “{pathname of client folder of current site & “__Download\NoChangingWallpaper.reg”}”

What am I missing?

Thank You!

Mak

(imported comment written by BenKus)

Hi Mak,

I think that is working, but it is changing the screensaver for the SYSTEM account, which is not what you want… Make sure when you run through the registry wizard, you check the box for the “Run as current user” on the first page.

Ben