How can I logoff and go to stand-by via Win XP script?

Posted by Peter on Super User See other posts from Super User or by Peter
Published on 2010-03-21T18:25:42Z Indexed on 2010/03/21 18:31 UTC
Read the original article Hit count: 239

Filed under:
|
|

I am looking for a way to write a script (of any sort) that would both log me off my local Windows account and also immediatedly put the computer to sleep / stand-by. I've found solutions that can do one or the other but not logoff and then sleep all in one script. The SHUTDOWN command doesn't offer this and I can't find any other options either.

This is for Win XP, SP3 right now but someday soon I'll want a Windows 7 solution as well.

Thanks for any ideas or an explanation as to why this isn't possible. :)

© Super User or respective owner

Related posts about windows-xp

Related posts about script