Hi,

This is a small script code for those , who love their wallpapers. or those love to change theri wallpaers daily.

I love to chnage my desktop wallpaper once or twice in a week.

This small code, jut get a ramdom image from your picture folders and set it as your desktop wallpaper..
I hope that you will like it.

Click on the link to know More about the script : http://newdelhipowershellusergroup.blogspot.in/2013/08/set-random-wallpaper-using-powershell.html

Best Regards!

Aman Dhally 

Come and join my journey of 100 Days of Self Improvement programme: https://www.facebook.com/100DoSI or at www.amandhally.net   

MY PowerShell Blog : http://newdelhipowershellusergroup.blogspot.com/ 

MY Personal Website: www.amandhally.net

 
PowerShell
Edit|Remove
#==================| Satnaam Waheguru Ji |=============================== 
#            
#            Author  :  Aman Dhally  
#            E-Mail  :  amandhally@gmail.com  
#            website :  www.amandhally.net  
#            twitter :   @AmanDhally  
#            blog    : http://newdelhipowershellusergroup.blogspot.in/ 
#            facebook: http://www.facebook.com/groups/254997707860848/  
#            Linkedin: http://www.linkedin.com/profile/view?id=23651495  
 
#            Creation Date    : 01-08-2013  
#            File    :  
#            Purpose :  
#             Version : 1  
# 
#            My Pet Spider :          /^(o.o)^\   
#======================================================================== 
 
 
#Path to your wallpaper folder.. 
$myPictureFolder = Join-Path $env:USERPROFILE  -ChildPath Pictures 
 
# doing DIR on a Picture folder and choosing the random 1 
$getRandomWallpaper = Get-ChildItem -Recurse $myPictureFolder |where  
 
{$_.Extension -eq ".jpg"}  | Get-Random -Count 1  
 
 
# Setting wallpaper to the regisrty. 
Set-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper -value  
 
$getRandomWallpaper.FullName   
 
# updating the user settings 
rundll32.exe user32.dll, UpdatePerUserSystemParameters  
rundll32.exe user32.dll, UpdatePerUserSystemParameters  
rundll32.exe user32.dll, UpdatePerUserSystemParameters  
 
 
# end of the script