Wake remote Win 10 PC-> Wolcmd command-> Works manual, not in cmd


  1. Posts : 299
    Windows 10 Home 1909 18363.900
       #1

    Wake remote Win 10 PC-> Wolcmd command-> Works manual, not in cmd


    I have a Win 10 PC acting as a media server. I want it to sleep unless needed.

    To make the use easy, especially for my wife, I want to have a WOL packet sent to it when I boot or login to another PC. I can accomplish the remote wake with Wolcmd.

    I have written a batch file that I can run from a CMD prompt which wakes the computer fine.

    But, when I run that bat file via the Task scheduler, it does not wake the PC. I have turned on History Logging and see that it is running. Really don't need that, as I see it open a CMD window and run.

    I can't imagine why it won't work from the Task Scheduler.

    Any ideas?
      My Computer


  2. Posts : 299
    Windows 10 Home 1909 18363.900
    Thread Starter
       #2

    NVM...I figured it out.

    Even though the bat file and the wolcmd.exe were in the same directory, I needed to specify the path to wolcmd.exe within the batch file.

    The batch file,when run from the Task Scheduler, does not look in it's own directory. So, with no path variable set up for that directory, it was failing.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 21:14.
Find Us




Windows 10 Forums