I know there are older programs that do the same thing but this one supports all windows controller options and deffinitly works with vista etc.
Pretty straightforward as long as you know what a command line interface utility is.
[.net 2 application.]
http://spesoft.com/wincontrol.zipHere is the usage as shown when you run it.
--------------------------------------------------------------
WinControl by Tom Speirs.
Windows controller command line application.
Usage:
wincontrol.exe [-force] -shutdown|-logoff|-poweroff|-suspend|-restart|-hibernate
|-monitoroff|-close] [process names]
Control system state, turn off monitor or close process.
Use -force to force shutdown etc, or force kill a process if it does not close.
--------------------------------------------------------------