Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This is part of an office prank where we change each other's backgrounds when we forget to lock our computer and we walk away (for security reasons of course) and one of our co-workers has been ruthless and has never walked away and left his computer unlocked. So does anyone know if there is a way to perform this with a photo that would be saved on a network drive that he has access to?

share|improve this question

closed as not constructive by CharlieRB, Xavierjazz, grawity, KronoS, harrymc Jun 19 '13 at 15:05

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Yes, they are called executables, scripts, macros... –  AthomSfere Jun 19 '13 at 13:42
    
I understand that much... I was more looking for a method or hopefully someone who already had a batch file created to do so. I searched and couldn't find one on my own. –  TZPike05 Jun 19 '13 at 13:54
    
Then you should have phrased it as such. Your question is ambiguous. –  AthomSfere Jun 19 '13 at 14:00

1 Answer 1

up vote 0 down vote accepted

You would just need a batch script that changes the appropriate values in the registry, and get the user to click the file. I didn't test it, but i found something you can try:

@ECHO OFF
:: Written by Eric Husband
:: 7/10/2009
:: copies the wallpaper from a location into the proper directory and as the proper file name. DO NOT CHANGE THE DESTINATION FILE NAME.
copy "\\ehusband-x1\ERIC\wallpaper1.bmp" "C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Microsoft\wallpaper1.bmp"
:: Adds the necessary Registry values, in case this person is using a System Wallpaper. If they've already customized their wallpaper, the following lines are not necessary. They won't hurt though.
REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Microsoft\wallpaper1.bmp"
:: Change the last number in the following line to a 0 if you want to center the bitmap on the desktop. Change the last number in the following line to a 2 if you want to stretch the bitmap vertically and horizontally to fit the desktop.
REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 2
:: Change the last number in the following line to a 0 to not tile the image; setting it to a 1 Tiles it.
REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 0
:: The following line refreshes the desktop.
%SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters
:: The following line Locks the workstation.
%SystemRoot%\System32\RUNDLL32.EXE user32.dll, LockWorkStation
share|improve this answer
1  
Please expand, link only answers are not a good format for a Q&A site. –  AthomSfere Jun 19 '13 at 13:50
    
I was able to get my answer from this link. Thank you Crimson. –  TZPike05 Jun 19 '13 at 13:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.