Using PSTools - How to wake a suspended computer locally?

Hi there,

I'm using a batch file in Windows 7 to put a laptop into suspend locally via PSTools.  The .bat file uses the single line of execution code:

psshutdown.exe -d -t 0 -accepteula

Now, this works great!  The problem is that I can't get the laptop to wake up the next morning via a different batch file (because it's in suspend mode).

I've tried code like 'echo hello' in a said batch file to wake it up in the morning, but no can do.

Am I stuck with having to so a 'Wake on Lan' from another computer, or is there some tool within the PSTools toolset that will allow me to wake up a computer locally at a designated time in the morning (via Task Scheduler).

Thanks in advance for any replies, and feel free to ask questions if I can help clarify anything.

Laptop:  Lenovo Thinkpad T420s

OS:  Windows 7 Home Premium, Service Pack 1

You will have to clarify your use of the term "suspend", what exactly is "suspended"?   You need to wake the remote computer via the NIC with "magic packet".  If you want to wake/start the computer with a scheduled task make sure that the option to wake the computer is enabled in the BIOS.

John

Programmers are either not taught about Occam's razor or they forgot about it the following day.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

You will have to clarify your use of the term "suspend", what exactly is "suspended"?   You need to wake the remote computer via the NIC with "magic packet".  If you want to wake/start the computer with a scheduled task make sure that the option to wake the computer is enabled in the BIOS.

John

Suspend as in 'Sleep Mode'.  Not hibernate.

And I'm familiar with remote computer Wake on LAN and magic packet options.  What I'm trying to do is wake the computer up *locally*.

Fortunately after a bit of searching, I found one I'm trying out.  It's free for personal use, and seems to fit the bill quite nicely (i.e. wake/sleep at a particular schedule).

It's called SmartPower Configuration.

http://getsmartpower.co.uk/

Thanks for the reply all the same!

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

You can do the same thing with Scheduled Tasks.

John

Programmers are either not taught about Occam's razor or they forgot about it the following day.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

You can do the same thing with Scheduled Tasks.

Hypothetically you could.  That was what I was trying to do earlier.  Use Scheduled Tasks to sleep and wake the computer at designated times, using PSTools and batch files. 

The sleep part worked great.   But PSTools apparently can't wake a computer out of sleep locally.  

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

You don't need or have to use PSTools to wake the computer, the scheduled task will start the computer at the time it is set to run, the task can be set to do something as simple as pinging the loopback adapter.

John

Programmers are either not taught about Occam's razor or they forgot about it the following day.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

You don't need or have to use PSTools to wake the computer, the scheduled task will start the computer at the time it is set to run, the task can be set to do something as simple as pinging the loopback adapter.

Actually, your right, but it's a different setting in the Conditions tab that I overlooked.  It's the checkbox labeled 'Wake the computer to run this task'.  Doh.

All set twice over!

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 21, 2025 Views 4,184 Applies to: