Re: headless-Server doesn't shutdown :-(
Posted: 5. Aug 2009, 16:37
I've found a nice solution imho 
Winexe (http://eol.ovh.org/winexe/) works like the "old" Sysinternals PSTools for Windows...
It's very easy to install it following the istruction on the site.
Well, with winexe, you can send ANY command you want to a windows host (with proper credentials of course), something like a remote cmd.exe (or a netcat shell
)
So, my first command was a "cmd /C dir c:\", to test the connection..perfect.
Then i issued the first shutdown command ('shutdown -s -t 00'), without success ("computer is locked...")
I've tried to force shutdown with the command 'shutdown -s -f -t 00' and... problem solved
So, we can still use acpipowerbutton command
What do you think?
Winexe (http://eol.ovh.org/winexe/) works like the "old" Sysinternals PSTools for Windows...
It's very easy to install it following the istruction on the site.
Well, with winexe, you can send ANY command you want to a windows host (with proper credentials of course), something like a remote cmd.exe (or a netcat shell
So, my first command was a "cmd /C dir c:\", to test the connection..perfect.
Then i issued the first shutdown command ('shutdown -s -t 00'), without success ("computer is locked...")
I've tried to force shutdown with the command 'shutdown -s -f -t 00' and... problem solved
So, we can still use acpipowerbutton command
What do you think?