<?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>Wake On LAN (WOL) – PowerShell style</title><link>http://blogs.technet.com/b/migreene/archive/2009/04/01/3221273.aspx</link><description>Working on another project and I needed a way to wake up an offline server from within my PS script.&amp;#160; I found this genius blog post and converted it to a script. Genius blog post - The PowerShell Guy : PowerShell Wake-on-lan script I saved the below</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Wake On LAN (WOL) – PowerShell style</title><link>http://blogs.technet.com/b/migreene/archive/2009/04/01/3221273.aspx#3481830</link><pubDate>Sun, 19 Feb 2012 20:31:31 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3481830</guid><dc:creator>Dave</dc:creator><description>&lt;p&gt;The line:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;$UDPclient.Connect(([System.Net.IPAddress]::Broadcast),4000)&lt;/p&gt;
&lt;p&gt;should be:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;$UDPclient.Connect(([System.Net.IPAddress]::Broadcast),9)&lt;/p&gt;
&lt;p&gt;UDP port 9 is the discard port, allowing the UDP stack to disregard the packet rather than forwarding it to any service running on port 4000.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3481830" width="1" height="1"&gt;</description></item><item><title>re: Wake On LAN (WOL) – PowerShell style</title><link>http://blogs.technet.com/b/migreene/archive/2009/04/01/3221273.aspx#3477223</link><pubDate>Wed, 25 Jan 2012 18:04:54 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3477223</guid><dc:creator>B</dc:creator><description>&lt;p&gt;Using the genius blog you referenced as a starting point, I tweaked your $Mac = statement to be able to parse the 3 most common MAC formats...&lt;/p&gt;
&lt;p&gt;$args[0] -match &amp;quot;^(..)-(..)-(..)-(..)-(..)-(..)$|^(..):(..):(..):(..):(..):(..)$|^(..)(..)(..)(..)(..)(..)$&amp;quot; | Out-Null&lt;/p&gt;
&lt;p&gt;Switch ($matches.Keys) {&lt;/p&gt;
&lt;p&gt;	{$_ -contains 1}{$mac = [byte[]]($matches[1..6] | % {[int]&amp;quot;0x$_&amp;quot;})}&lt;/p&gt;
&lt;p&gt;	{$_ -contains 7}{$mac = [byte[]]($matches[7..12] | % {[int]&amp;quot;0x$_&amp;quot;})}&lt;/p&gt;
&lt;p&gt;	{$_ -contains 13}{$mac = [byte[]]($matches[13..18] | % {[int]&amp;quot;0x$_&amp;quot;})}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3477223" width="1" height="1"&gt;</description></item><item><title>re: Wake On LAN (WOL) – PowerShell style</title><link>http://blogs.technet.com/b/migreene/archive/2009/04/01/3221273.aspx#3229968</link><pubDate>Fri, 24 Apr 2009 03:21:33 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3229968</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;One more way to remotely wake up a server over Internet is a service &amp;quot;Wake-On-LAN Online&amp;quot; &amp;nbsp;- &lt;a rel="nofollow" target="_new" href="http://www.wakeonlan.me"&gt;http://www.wakeonlan.me&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;It can be used with any device connected to the Internet and allows simple wake up PC just with a link to the pahe of the site with necessary MAC and IP address. &lt;/p&gt;
&lt;p&gt;Furthermore the wake up can be scheduled for certain time and date and the site will wake up the PC automatically in that time.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3229968" width="1" height="1"&gt;</description></item></channel></rss>