Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Sleep-on-LAN

15 Jan 2011   #1
allend66

Windows 7 Home Premium x64 OEM --> RTM clean install
 
 
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
Sleep-on-LAN-powershell.jpg  
My System SpecsSystem Spec
.
17 Jan 2011   #2
allend66

Windows 7 Home Premium x64 OEM --> RTM clean install
 
 

Guys, just a polite thread-bumping..

Anybody got any ideas for this one?

Too difficult for you all?

Thanks!
My System SpecsSystem Spec
17 Jan 2011   #3
acurasd

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
.

17 Jan 2011   #4
allend66

Windows 7 Home Premium x64 OEM --> RTM clean install
 
 

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."
My System SpecsSystem Spec
17 Jan 2011   #5
Ztruker

Windows 10 Pro X64
 
 

acurasd - very nice program. Thanks for the pointer.
My System SpecsSystem Spec
17 Jan 2011   #6
acurasd

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
18 Jan 2011   #7
allend66

Windows 7 Home Premium x64 OEM --> RTM clean install
 
 

Quote   Quote: Originally Posted by acurasd View Post
... 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 System SpecsSystem Spec
18 Jan 2011   #8
acurasd

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
19 Jan 2011   #9
allend66

Windows 7 Home Premium x64 OEM --> RTM clean install
 
 

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 Images
Sleep-on-LAN-1.jpg 
My System SpecsSystem Spec
19 Jan 2011   #10
Ztruker

Windows 10 Pro X64
 
 

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 System SpecsSystem Spec
Reply

 Sleep-on-LAN




Thread Tools




Similar help and support threads
Thread Forum
create sleep task, to force sleep over a program ?
Hello, I would like to know how to create a task in task scheduler , that'll force the computer into sleep over a running program. Basically, I have some software that runs in the background called 'WD anywhere backup' and when this software is running it prevents the computer from...
General Discussion
Numerous BSOD's. Normally caused while in sleep / putting to sleep.
Hello Seveners! I have been having trouble with a BSOD for a while now. It is getting to that extent that I bare it any longer! I need help! Firstly, these BSOD's have been happening randomly, but normally the case is while it is in sleep, or when I put it to sleep, the screen will go black,...
BSOD Help and Support
BSOD - Won't sleep or crashes during sleep on Dell Latitude 6430u
Hi, I have a Dell Latitude 6430u running windows 7 64. When I first got it I worked through many BSOD issues and it was running fine for many many months. Now recently it started not sleeping, waking up by itself during sleep and waking up from sleep with an unexpected crash message. Any and...
BSOD Help and Support
Waking from Sleep understood but wont go back to sleep
I setup 2 Media center PC's and have them both goto sleep when not being used. They wake up in the middle of the night due to mcupdate_scheduled which I understand and know how to turn off. My problem is I want to leave it the option on and have the computers go back to sleep after the update is...
Media Center
GA-EP35-DS3L sleep and KVM switch wakes comp from sleep
Hi All, I have two systems a N650SLI-DS4 and a GA-EP35-DS3L hooked up to a Trednet KVM switch. If I put the GA-EP35-DS3L to sleep and switch to the N650SLI-DS4, the GA-EP35-DS3L system wakes up. The only way I have been able to keep it in sleep is if I hold the switch for the N650SLI-DS4 while...
General Discussion
Sleep doesn't sleep anymore - just goes to login screen
For some reason, my 'sleep' has stopped working - either from the sleep button, or on the Start button option. Now it just goes to the user login screen. Has always worked perefctly until today. Weird. Any ideas?
General Discussion


Our Sites

Site Links

About Us

Find 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 13:51.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App