Sleep-on-LAN

Page 1 of 4 123 ... LastLast

  1. Posts : 385
    Windows 7 Home Premium x64 OEM --> RTM clean install
       #1

    Sleep-on-LAN


    Does anybody have any ideas about this, please - I want to doubleclick a shortcut on my local desktop and put a remote laptop on my LAN to sleep (note: we've already got shutdown to work, but not sleep.)

    I've tried:

    1) a shortcut to a shortcut on the remote pc doesn't work.

    2) a shortcut pointing to "\\remotepc\WinXP\Windows\system32\rundll32.exe powrprof,SetSuspendState" only puts the local pc to sleep, not the remote.

    3) 3rd party apps don't work: Wizmo (same as number 2, puts local to sleep, even though it is in remote's %system% directory) and Sysinternals' PsTools (PsExec) doesn't work - all sorts of access denied, even though I am adminstrator on both, with the same account name and password on both machines.

    4) Powershell 2.0 remote doesn't work either -

    Please! Somebody help me put my remote pc to sleep with 1 double-click from my local desktop, and not have to RDP in, wait for 20 seconds for the connection to establish, then double click the sleep shortcut on the remote's desktop, then exit. I'm going mad with this one...
    Attached Thumbnails Attached Thumbnails Sleep-on-LAN-powershell.jpg  
      My Computer


  2. Posts : 385
    Windows 7 Home Premium x64 OEM --> RTM clean install
    Thread Starter
       #2

    Guys, just a polite thread-bumping..

    Anybody got any ideas for this one?

    Too difficult for you all?

    Thanks!
      My Computer


  3. Posts : 972
    Windows 7 Ultimate x64
       #3

    psexec \\nameofpc -u <username> -p <password> "rundll32 powrprof.dll,SetSuspendState"

    or

    psexec \\nameofpc -u <username> -p <password> "%windir%\system32\rundll32.exe powrprof.dll,SetSuspendState Hibernate"


    PsExec

    Not too difficult for me....
      My Computer


  4. Posts : 385
    Windows 7 Home Premium x64 OEM --> RTM clean install
    Thread Starter
       #4

    OK, thanks, but I'll have to post back later: it doesn't work for me. (The blasted window flashes up and is gone before I can read/screengrab it).

    Looking into video screengrab software and will post back...

    ----

    Ok, got it... the popup windows says:

    "Couldn't access M30:
    The network name couldn't be found.

    Make sure that the default admin$ is enabled on M30."
    Last edited by allend66; 17 Jan 2011 at 13:49. Reason: extra info
      My Computer


  5. Posts : 6,285
    Windows 10 Pro X64
       #5

    acurasd - very nice program. Thanks for the pointer.
      My Computer


  6. Posts : 972
    Windows 7 Ultimate x64
       #6

    Seems as though it tries to use the true admin account on the computer. You can always enable the true admin on both computers and put a very secured password on one another so that the program will be able to push through.
      My Computer


  7. Posts : 385
    Windows 7 Home Premium x64 OEM --> RTM clean install
    Thread Starter
       #7

    acurasd said:
    ... can always enable the true admin on both computers and ... the program will be able to push through.
    Hmm, ok thanks. Could you please walk me through it?

    The last thing I tried before giving up and going onto the next thing (see original post) was turn off simple file sharing and enable admin$. I don't know where I found it now ( I suppose I could refind it if needed ) but I changed a HKLM DWORD from 1 to 0 forcing WinXP to recreate the admin$ on reboot.

    When you say true admin - I'm confused: Both the local (Win7 HP x64) and the remote (WinXP Pro SP3 x86) are administrator accounts - both have the same user name and same password.

    Thanks.
      My Computer


  8. Posts : 972
    Windows 7 Ultimate x64
       #8

    Enable the (Hidden) Administrator Account on Windows 7 or Vista - How-To Geek
    Do It Yourself....

    or

    Youtube Video

    YouTube - How to Access True Administrator Vista/ Windows 7 HD!!


    Now on each computer, you will want to put the same password on each box.. to do so.. you have to ALT CTRL and DEL, change password.
      My Computer


  9. Posts : 385
    Windows 7 Home Premium x64 OEM --> RTM clean install
    Thread Starter
       #9

    Acurasd - thanks. You've taken the time to answer me, for which I am grateful, though I won't take your advice - not just yet. I'll see if it can be solved some other way, as I'm not sure if this is relevant. I've been trawling the Sysinternals forums and there is any amount of can't-get-this-to-connect type posts, and nowhere is mentioned true admin account.

    I get a "network name couldn't be found.." with the name of the PC or its IP address.
    So:
    "psexec \\M30 -u myadminaccount -p mypassword cmd" is just as unproductive as
    "psexec \\192.168.1.99 -u myadminaccount -p mypassword cmd". This is with psexec.exe pasted into my Windows directory (psshutdown doesn't work either). The long version also didn't work: "C:\users\allend66\Documents\psexec.exe \\M30 -u myadminaccount -p mypassword cmd".

    I think the problem is somewhere on the remote machine (WinXP SP3 x86), even though I have simple file sharing off, Network access:classic - users use their own credentials (not "guest" account), firewall has exceptions, and I'm Administrator account on local & remote with the same name & password on both (elevated command prompt, and right click shortcut "run as administrator").

    would welcome any other suggestions..
    Attached Thumbnails Attached Thumbnails Sleep-on-LAN-1.jpg  
      My Computer


  10. Posts : 6,285
    Windows 10 Pro X64
       #10

    What does net view in a Command Prompt show you? Should return a list of computers on your network in the form:

    \\COMPUTER1
    \\COMPUTER2


    The net view \\COMPUTER1 should return a list of shared resources on that computer. If that work than network name resolution is working. If not then that is where your problem is.
      My Computer


 
Page 1 of 4 123 ... LastLast

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

© Designer Media Ltd
All times are GMT -5. The time now is 10:43.
Find Us