I've been using CFEXECUTE to call an exe file. This exe file
is supposed to do 2 things.
1. Update an Excel Sheet using values from the database.
2. Shutdown all remote pc's
The shutdown of the remote pc's is actually done in a bat
file using the command
shutdown -s -m \\remote_pc_name_1 -t 5
shutdown -s -m \\remote_pc_name_2 -t 5
shutdown -s -m \\remote_pc_name_3 -t 5
shutdown -s -m \\remote_pc_name_4 -t 5
This shutdown command works perfect, no doubt about it! I've
tested it on standalone, i.e. I've run the bat file and the remote
Now this bat file (called shutdown.bat) is included in a
small VB program (called update_shutdown.exe) using the following
update_shutdown.exe also contains commands to update the
required Excel sheet on the server.
The exe file update_shutdown.exe works perfect on its own.
The Excel sheet is updated and the remote pc's are shutdown.
Now, when I use the tag CFEXECUTE to call the exe file,
only the update works, the remote pc's
DO NOT SHUTDOWN AS THEY ARE SUPPOSED TO!!!
The syntax is very simple <cfexecute
Can somebody please explain to me what the problem might be?
In simple english, why is it that when I run the exe (by
double-clicking on it obviously!) on standalone, both the Excel
sheet is updated and the remote pc's are shutdown, but when I call
the exe via CF, it's as if it's preventing the exe to run the bat
Your help will be greatly appreciated as this is a very
The pc shutdown probably requires CFMX to be run as a domain
user with permissions to shutdown the remote PC. See technote:
You can quickly test this by stopping the cf application
server service. Then start it from the commandline by running
\cfusionmx\bin\cfstart. Test you cfexecute template again. If it
works, the issue is as I described. Run the cfservice using a user
with the needed permissions. Services run as local system by
default. Local system will not have permissions on other