http://www.perlmonks.org?node_id=537435


in reply to Shutdown through CGI-Script

You need to execute the script as an admin user. A tool such as psexec (http://www.sysinternals.com/utilities/psexec.html)can be used to execute as a different user.