<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hey, Scripting Guy! How Can I Change the Desktop Wallpaper to One of Six Predefined Selections?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2007/01/19/how-can-i-change-the-desktop-wallpaper-to-one-of-six-predefined-selections.aspx</link><description>Hey, Scripting Guy! How can I change the desktop wallpaper to one of six pre-defined selections? -- SB 
 
 Hey, SB. You know, when the Scripting Guy who writes this column first sat down to tackle this problem he thought he had a really cool solution</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Hey, Scripting Guy! How Can I Change the Desktop Wallpaper to One of Six Predefined Selections?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2007/01/19/how-can-i-change-the-desktop-wallpaper-to-one-of-six-predefined-selections.aspx#3543057</link><pubDate>Sat, 29 Dec 2012 07:15:18 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3543057</guid><dc:creator>wallpapers</dc:creator><description>&lt;p&gt;Very useful tips. I has used ac-digital.com free wallpapers. it has bundles of color on your desktop,laptop or other devise with this stunning image of beautiful, colorful flowers.Sure to light up your day.if you can try this one.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3543057" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Change the Desktop Wallpaper to One of Six Predefined Selections?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2007/01/19/how-can-i-change-the-desktop-wallpaper-to-one-of-six-predefined-selections.aspx#3491909</link><pubDate>Fri, 13 Apr 2012 01:41:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3491909</guid><dc:creator>Bill</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve searched all over and this is probably the closest to what I want to accomplish.&lt;/p&gt;
&lt;p&gt;Is it possible to put a time (say 30mn) between each of the wallpaper randomization?&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3491909" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Change the Desktop Wallpaper to One of Six Predefined Selections?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2007/01/19/how-can-i-change-the-desktop-wallpaper-to-one-of-six-predefined-selections.aspx#3481027</link><pubDate>Wed, 15 Feb 2012 06:17:17 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3481027</guid><dc:creator>Frank</dc:creator><description>&lt;p&gt;HBK, I just had to change &amp;quot;WshShell.Run &amp;quot;%windir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters&amp;quot;, 1, False&amp;quot; to &amp;quot;WshShell.Run &amp;quot;%windir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters&amp;quot;, 1, true&amp;quot;....&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3481027" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Change the Desktop Wallpaper to One of Six Predefined Selections?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2007/01/19/how-can-i-change-the-desktop-wallpaper-to-one-of-six-predefined-selections.aspx#3473724</link><pubDate>Tue, 03 Jan 2012 14:32:58 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3473724</guid><dc:creator>HBK</dc:creator><description>&lt;p&gt;Hey guys just run the below script .. It think it will work for you &lt;/p&gt;
&lt;p&gt;Dim WshShell&lt;/p&gt;
&lt;p&gt;Const HKEY_CURRENT_USER = &amp;amp;H80000001&lt;/p&gt;
&lt;p&gt;strComputer = &amp;quot;.&amp;quot;&lt;/p&gt;
&lt;p&gt;Set objReg = GetObject(&amp;quot;winmgmts:\\&amp;quot; &amp;amp; strComputer &amp;amp; &amp;quot;\root\default:StdRegProv&amp;quot;)&lt;/p&gt;
&lt;p&gt;intLowNumber = 1&lt;/p&gt;
&lt;p&gt;intHighNumber = 6&lt;/p&gt;
&lt;p&gt;Randomize&lt;/p&gt;
&lt;p&gt;intNumber = Int((intHighNumber - intLowNumber + 1) * Rnd + intLowNumber)&lt;/p&gt;
&lt;p&gt;msgbox intNumber&lt;/p&gt;
&lt;p&gt;Select Case intNumber&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Case 1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strValue = &amp;quot;C:\WINDOWS\System32\Wallpaper1.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Case 2&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strValue = &amp;quot;C:\WINDOWS\System32\Wallpaper2.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Case 3&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strValue = &amp;quot;C:\WINDOWS\System32\Wallpaper3.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Case 4&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strValue = &amp;quot;C:\WINDOWS\System32\Wallpaper4.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Case 5&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strValue = &amp;quot;C:\WINDOWS\System32\Wallpaper5.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Case 6&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strValue = &amp;quot;C:\WINDOWS\System32\Wallpaper6.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt;End Select&lt;/p&gt;
&lt;p&gt;strKeyPath = &amp;quot;Control Panel\Desktop&amp;quot;&lt;/p&gt;
&lt;p&gt;ValueName = &amp;quot;Wallpaper&amp;quot;&lt;/p&gt;
&lt;p&gt;objReg.SetStringValue HKEY_USERS, strKeyPath, ValueName, strValue&lt;/p&gt;
&lt;p&gt;Set WshShell = WScript.CreateObject(&amp;quot;Wscript.Shell&amp;quot;)&lt;/p&gt;
&lt;p&gt;WshShell.RegWrite &amp;quot;HKCU\Control Panel\Desktop\Wallpaper&amp;quot;, strValue&lt;/p&gt;
&lt;p&gt;WshShell.Run &amp;quot;%windir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters&amp;quot;, 1, False&lt;/p&gt;
&lt;p&gt;Set WshShell = Nothing&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3473724" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Change the Desktop Wallpaper to One of Six Predefined Selections?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2007/01/19/how-can-i-change-the-desktop-wallpaper-to-one-of-six-predefined-selections.aspx#3451580</link><pubDate>Wed, 07 Sep 2011 12:08:44 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3451580</guid><dc:creator>cassowary</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;running this command applies the modified user configurations:&lt;/p&gt;
&lt;p&gt;Set oShell = CreateObject(&amp;quot;WScript.Shell&amp;quot;)&lt;/p&gt;
&lt;p&gt;oShell.Run &amp;quot;%windir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters&amp;quot;, 1, True&lt;/p&gt;
&lt;p&gt;Found this on another page.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3451580" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Change the Desktop Wallpaper to One of Six Predefined Selections?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2007/01/19/how-can-i-change-the-desktop-wallpaper-to-one-of-six-predefined-selections.aspx#3348139</link><pubDate>Tue, 03 Aug 2010 06:25:47 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3348139</guid><dc:creator>isd503</dc:creator><description>&lt;p&gt;The Scripting Guy was a little bit hurried on his cut and paste:&lt;/p&gt;
&lt;p&gt;Const HKEY_CURRENT_USER = &amp;amp;H80000001&lt;/p&gt;
&lt;p&gt;strComputer = &amp;quot;.&amp;quot;&lt;/p&gt;
&lt;p&gt;Set objReg = GetObject(&amp;quot;winmgmts:\\&amp;quot; &amp;amp; strComputer &amp;amp; &amp;quot;\root\default:StdRegProv&amp;quot;)&lt;/p&gt;
&lt;p&gt;intLowNumber = 1&lt;/p&gt;
&lt;p&gt;intHighNumber = 6&lt;/p&gt;
&lt;p&gt;intNumber = Int((intHighNumber - intLowNumber + 1) * Rnd + intLowNumber)&lt;/p&gt;
&lt;p&gt;Select Case intNumber &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;	Case 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;		strValue = &amp;quot;C:\WINDOWS\System32\Wallpaper1.bmp&amp;quot; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;	Case 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;		strValue = &amp;quot;c:\Windows\Web\Wallpaper\Wallpaper_NIPR.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt;	Case 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;		strValue = &amp;quot;c:\Windows\Web\Wallpaper\Wallpaper_NIPR.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt;	Case 4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;		strValue = &amp;quot;c:\Windows\Web\Wallpaper\Wallpaper_NIPR.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt;	Case 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;		strValue = &amp;quot;c:\Windows\Web\Wallpaper\Wallpaper_NIPR.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt;	Case 6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;		strValue = &amp;quot;c:\Windows\Web\Wallpaper\Wallpaper_NIPR.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt;End Select&lt;/p&gt;
&lt;p&gt;strKeyPath = &amp;quot;Control Panel\Desktop&amp;quot;&lt;/p&gt;
&lt;p&gt;ValueName = &amp;quot;Wallpaper&amp;quot;&lt;/p&gt;
&lt;p&gt;objReg.SetStringValue HKEY_CURRENT_USER, strKeyPath, ValueName, strValue&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3348139" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Change the Desktop Wallpaper to One of Six Predefined Selections?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2007/01/19/how-can-i-change-the-desktop-wallpaper-to-one-of-six-predefined-selections.aspx#3341682</link><pubDate>Fri, 02 Jul 2010 03:15:51 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3341682</guid><dc:creator>Ted</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried this code but got an error that says &amp;quot;expect end of statement&amp;quot;. here is my syntax &lt;/p&gt;
&lt;p&gt;any help is appreciated.&lt;/p&gt;
&lt;p&gt;Const HKEY_CURRENT_USER = &amp;amp;H80000001&lt;/p&gt;
&lt;p&gt;strComputer = &amp;quot;.&amp;quot;&lt;/p&gt;
&lt;p&gt;Set objReg = GetObject(&amp;quot;winmgmts:\\&amp;quot; &amp;amp; strComputer)&lt;/p&gt;
&lt;p&gt;Set objReg = GetObject(&amp;quot;winmgmts:\\&amp;quot; &amp;amp; strComputer &amp;amp; &amp;quot;\root\default:StdRegProv&amp;quot;)&lt;/p&gt;
&lt;p&gt;intLowNumber = 1&lt;/p&gt;
&lt;p&gt;intHighNumber = 6&lt;/p&gt;
&lt;p&gt;intNumber = Int((intHighNumber - intLowNumber + 1) * Rnd + intLowNumber)&lt;/p&gt;
&lt;p&gt;Select Case intNumber&lt;/p&gt;
&lt;p&gt;	Case 1&lt;/p&gt;
&lt;p&gt;		strValue = &amp;quot;C:\Documents and Settings\TED\Desktop\Scripts\Wallpapers\Wallpaper1.bmp&amp;quot; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;	Case 2&lt;/p&gt;
&lt;p&gt;		strValue = &amp;quot;C:\Documents and Settings\TED\Desktop\Scripts\Wallpapers\Wallpaper2.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt;	Case 3&lt;/p&gt;
&lt;p&gt;		strValue = &amp;quot;C:\Documents and Settings\TED\Desktop\Scripts\Wallpapers\Wallpaper3.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt;	Case 4&lt;/p&gt;
&lt;p&gt;		strValue = &amp;quot;C:\Documents and Settings\TED\Desktop\Scripts\Wallpapers\Wallpaper4.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt;	Case 5&lt;/p&gt;
&lt;p&gt;		strValue = &amp;quot;C:\Documents and Settings\TED\Desktop\Scripts\Wallpapers\Wallpaper5.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt;	Case 6&lt;/p&gt;
&lt;p&gt;		strValue = &amp;quot;C:\Documents and Settings\TED\Desktop\Scripts\Wallpapers\Wallpaper6.bmp&amp;quot;&lt;/p&gt;
&lt;p&gt;End Select&lt;/p&gt;
&lt;p&gt;strKeyPath = &amp;quot;Control Panel\Desktop&amp;quot;ValueName = &amp;quot;Wallpaper&amp;quot;&lt;/p&gt;
&lt;p&gt;bjReg.SetStringValue HKEY_USERS, strKeyPath, ValueName, strValue&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3341682" width="1" height="1"&gt;</description></item></channel></rss>