Re: Problem remotely shutting down a windows computer with python

2005-01-06 Thread EW
This does exactly what I needed! Thanks! Not sure what Windows Management Instrumentation is, but I'll look into it now. Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem remotely shutting down a windows computer with python

2005-01-04 Thread Tim G
> I have a problem when using the python script found here: > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/360649 > > It is a script to remotely shutdown a windows computer. When I use it, > the computer shuts down, but doesn't power off like with a regular > shutdown. It stays on the

Re: Problem remotely shutting down a windows computer with python

2005-01-03 Thread Duncan Booth
Kartic wrote: > Looks like this is the documented outcome. You could alternatively try > setting a little XML-RPC app to invoke 'shutdown -s' on the remote PC > from your PC (e.g. using Twisted Python). > Or invoke 'shutdown -s -m \\machinename' on the local machine to shutdown a remote machine

Re: Problem remotely shutting down a windows computer with python

2005-01-02 Thread Kartic
Hi, According to the online docs for InitiateSystemShutdown() at http://aspn.activestate.com/ASPN/docs/ActivePython/2.2/PyWin32/win32api__InitiateSystemShutdown_meth.html bRebootAfterShutdown : int Specifies whether the computer is to restart immediately after shutting down. If this parameter i

Re: Problem remotely shutting down a windows computer with python

2005-01-02 Thread EW
I believe that would shutdown the computer you were physically at, but it wouldn't shutdown the computer down the hall over the LAN like this script was meant to do. -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem remotely shutting down a windows computer with python

2005-01-02 Thread Daniel Bickett
While I have no solution for the recipe you cited, it seems like alot of trouble could be avoided by simply importing the os module and running the following command using os.system: shutdown -s Daniel Bickett On 2 Jan 2005 20:13:35 -0800, EW <[EMAIL PROTECTED]> wrote: > I have a problem when u

Problem remotely shutting down a windows computer with python

2005-01-02 Thread EW
I have a problem when using the python script found here: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/360649 It is a script to remotely shutdown a windows computer. When I use it, the computer shuts down, but doesn't power off like with a regular shutdown. It stays on the "Safe to po