Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change wall paper every month using Group Policy and Script.

Status
Not open for further replies.

windowsfan

IS-IT--Management
Jan 26, 2007
237
US
I need help to modify the below script to check if currentMonth.jpg file exist on local pc users profile. It should delete all wallpaper besides current month.

Currently I am using below script from Markdmac

Set WshShell=CreateObject("WScript.Shell")
USERPROFILE =WshShell.ExpandEnvironmentStrings("%USERPROFILE%")

Set objFSO = CreateObject("Scripting.FileSystemObject")
If Not objFSO.FileExists(USERPROFILE &"\logo.jpg") Then
objFSO.CopyFile "\\server\share\logo.jpg", USERPROFILE &"\logo.jpg"
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top