Results 1 to 4 of 4

Thread: Wake on LAN script

  1. #1
    Join Date
    Dec 2008
    Posts
    42

    Wake on LAN script

    I want kind of vbscript by which i can remotely wake my machine on LAN. I know about the various software but i don't want to use them, i want to do it by running script by myself. Any ideas?

  2. #2
    Join Date
    Mar 2008
    Posts
    198

    Re: Wake on LAN script

    I also have this need, i always use WOL.EXE command line utility. You can download it from here . You just need to give the MAC address of a remote system. As its description is given it broadcasts a "Wake On LAN" packet to the Network Interface Card (NIC) with the specified MAC address. The MAC address may optionally be followed by the IP address of the network adapter that should broadcast the packet. To find your MAC address, run the MSINFO32.EXE tool that is part of Windows. Navigate to Components > Network > Adapter.

  3. #3
    Join Date
    Dec 2008
    Posts
    1,108

    Re: Wake on LAN script

    Refer t this thread : http://forums.techarena.in/server-scripting/903747.htm
    Hope this will help.
    The difference between stupidity and genius is that genius has its limits. - Albert Einstein

    What we think, we become (Please don't think you are a superhero and don't try to fly)

    "SUCCESS IS NOT A DESTINATION , IT'S A JOURNEY"

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: Wake on LAN script

    Hope you have MAC addresses to process, you can do that with a "for /f" command , this command will read a file line by line and put the words found in the lines into variables ,enter "help for" in a command window for details.

    So below code should do :

    @echo off
    :: *** The file with the mac addresses to process:
    set MacFile=C:\Temp\maclist.txt
    for /f %%a in ('type "%MacFile%"') do ECHO wakeonlan.exe %%a
    Replace "wakeonlan.exe" with the command line application of your choice, and add other parameters, if necessary. Use "%%a" where you would normally put the machine's MAC address.

Similar Threads

  1. Is it possible to execute Perl script within another script?
    By RasMus in forum Software Development
    Replies: 2
    Last Post: 21-07-2009, 10:57 PM
  2. Word 2008 + bibfuse: no script in script menu
    By deval4u in forum Software Development
    Replies: 5
    Last Post: 06-04-2009, 12:53 PM
  3. Replies: 2
    Last Post: 14-01-2009, 01:25 PM
  4. Script for Remote Wake on Lan
    By Wayne Jordan in forum Windows Server Help
    Replies: 4
    Last Post: 31-01-2008, 04:18 AM
  5. Startup Script or Login Script ??
    By WANNABE in forum Active Directory
    Replies: 5
    Last Post: 22-12-2006, 07:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,437,398.04624 seconds with 17 queries