cheaplongchamp
MP
(0) (0 Votes)

My Friends
My Stats
  • videos Videos: 0
  • audio Audios: 0
  • blogs Blogs: 0
  • images Pictures: 0
  • friends Friends: 0
  • profile views Profile Views: 71
About Me
  • Name cheap
  • Surname good
  • Age 24
  • Gender
  • Relationship Status
Leave a Comment
 
    Post comment
  • Date:2012-05-18 23:06:38         
  • rather than its MAC address? I had a Windows PowerShell script that sent the magic packet needed to wake up a machine over the network (see my FAQ "How can I easily send a magic packet.." here at Windows IT PRO) However it required you to enter the MAC address of the machine The script below grabs a data file called wakeupdat (update to where you have the dat file) and reads in name and MAC address pairs in the format below: savdalscs01|00:1B:21:BD:E2:DB savdalscs02|00:1F:D0:81:36:77 savdalbfs01|00:15:17:C4:E1:05 Save the script below as wakeupps1:#param ([String]$HostName = $(throw 'No host passed please pass hostname')) #either format if ($argsLength -ne 1) throw "No host passed please pass host parameter" $HostName = $args[0]ToUpper() $FoundMatch = $FALSE $data = Get-Content "d:\projects\powershell\wakeupdat" # write-host $datacount total lines read from file foreach ($line in $data) { $linesplit = $linesplit("|") if ($linesplitLength -ne 2) 00:23:23:00:23:23' if ($HostNameCompareT...