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

01 Apr 2011   #21
Ztruker

Windows 10 Pro X64
 
 

Do you have the same account name on both computers? I ask this because I have a similar setup as you. My desktop is Win 7 and my other system is XP Pro. I have the same account and same password on both computers and psexec.exe works for me.

Edit: Also:

shutdown /s /m \\remotecomp /t 30 /c "Remote restart of Web Server"

also works for me, no need for psexec.exe.


My System SpecsSystem Spec
.
01 Apr 2011   #22
Ztruker

Windows 10 Pro X64
 
 

Does dir \\m30-861\shareddocs work from a command prompt?
My System SpecsSystem Spec
02 Apr 2011   #23
allend66

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

Yip, same account name and same password, also both are Administartor accounts.
Post#21 doesn't work, however...


What now? I don't understand - The whole pc is shared!


Attached Thumbnails
Sleep-on-LAN-capture.jpg   Sleep-on-LAN-untitled.jpg  
My System SpecsSystem Spec
.

02 Apr 2011   #24
Ztruker

Windows 10 Pro X64
 
 

Doesn't appear this has anything to do with sharing, just permissions.

What about from the other direction, does that work? Use

shutdown /s /m \\remotecomp /t 30 /c "Remote restart of Web Server"

as before then if it does work, enter shutdown /a to terminate the shutdown.
My System SpecsSystem Spec
02 Apr 2011   #25
acurasd

Windows 7 Ultimate x64
 
 

This is just a shot in the dark here.... but windows 7 does come with a Telnet Server and Client.
or even FTP execution....

What about creating a script that will execute a bat file on the remote computer to put the computer into sleep mode.

Execute the bat file on the root directory:

Sleep.bat

%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby
My System SpecsSystem Spec
03 Apr 2011   #26
allend66

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

Quote   Quote: Originally Posted by Ztruker View Post
Doesn't appear this has anything to do with sharing, just permissions.

What about from the other direction, does that work? Use

shutdown /s /m \\remotecomp /t 30 /c "Remote restart of Web Server"

as before then if it does work, enter shutdown /a to terminate the shutdown.
Thanks but this stubborn little bugger says:
"M30-861: Access is denied. (5)"

Permissions, you say?
My System SpecsSystem Spec
03 Apr 2011   #27
allend66

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

Quote   Quote: Originally Posted by acurasd View Post
This is just a shot in the dark here.... but windows 7 does come with a Telnet Server and Client.
or even FTP execution....

What about creating a script that will execute a bat file on the remote computer to put the computer into sleep mode.

Execute the bat file on the root directory:

Sleep.bat

%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby
Thanks for the input, though you'll have to explain a little the Telnet / FTP line of thought.-- Set up a Telnet account on both machines?
My System SpecsSystem Spec
03 Apr 2011   #28
Ztruker

Windows 10 Pro X64
 
 

What I meant was to be on the M30-861 computer and try the shutdown to the L500 system.
My System SpecsSystem Spec
03 Apr 2011   #29
acurasd

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by allend66 View Post
Quote   Quote: Originally Posted by acurasd View Post
This is just a shot in the dark here.... but windows 7 does come with a Telnet Server and Client.
or even FTP execution....

What about creating a script that will execute a bat file on the remote computer to put the computer into sleep mode.

Execute the bat file on the root directory:

Sleep.bat

%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby
Thanks for the input, though you'll have to explain a little the Telnet / FTP line of thought.-- Set up a Telnet account on both machines?
I take it that you get a dynamic IP from your ISP... so knowing your IP is going to be difficult. So that is why you use DDNS to your router.
Get yourself a web address and then you have to give your server computer static IP's to forward port to the server.
Then you activate the Telnet server on your computer that you want to control or (log into). It is in your add and remove programs.

You log into your computer using user name and password for admin rights. Then execute the bat file or any file that will run the:

%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby

command
My System SpecsSystem Spec
05 Apr 2011   #30
allend66

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

Quote   Quote: Originally Posted by Ztruker View Post
What I meant was to be on the M30-861 computer and try the shutdown to the L500 system.
Sorry for my denseness, Rich... ok, so I tried what you wrote (copied/pasted) and as soon as I hit enter, I heard a beep from my L500 (Win7) box. Pop up window "You are about to be logged off". The machine then powered down with no reboot.

So it seems there's a permission issue to do it the other way round L500 --> M30.

I'm sure you've got this covered and this is just for testing purposes, but I wanted to remote sleep the M30 from L500, but you knew that, right.
Thanks
D
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 14:13.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App