• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

remote boot locked server

New Here ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

I've been trying to use the MS tool shutdown.exe to reboot a remote server. Works fine from command line, but when I put it in a cfexecute it does not. Blow is the cfexecute code and the results from the output file.

Any suggestions?

= = = = = = = = = Exceute Code = = = = = = =
<CFSET thisPath= ExpandPath("*.*")>
<CFSET thisDirectory= GetDirectoryFromPath(thisPath)>
<cfexecute name="c:\cfusion\shutdown.exe" arguments="\\MyOtherServer /t:5 /r /c" outputfile = "#thisdirectory#output.txt"/>


= = = = = = = = Results = = = = = = = = == = =
Shutdown:\\webmail_1
AdjustTokenPrivileges enable failed.
TOPICS
Advanced techniques

Views

266

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

Must run Cold Fusion under account with sufficient privileges.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

OK - I changed the CF service to run as an admin user - that worked. THANK YOU

What (if any) is the downside to running CF as an admin user rather than as local system?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

All ColdFusion code and process will run with full admin rights and
privileges, passing this on to the users of these CF applications.

It is a better practice to create a CF user with just the rights it
needs to run the applications being built on that server. That is what
we do here.

jleblond wrote:
> OK - I changed the CF service to run as an admin user - that worked. THANK YOU
>
> What (if any) is the downside to running CF as an admin user rather than as local system?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

LATEST
Agreed. Assume that you've got a hole, bug, etc., so your error or somebody's intentional action could be very damaging, since you gave to CF rights to do anything...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation