locked
Windows Server 2008 / UAC / Start a Service RRS feed

  • Question

  • I have program, that simply starts a service if it's not started.  This worked wonderful in Server 2003, but under Server 2008 it's failing saying I don't have permissions.  This is a batch job, run by a job scheduler.  Here is what I have done:

    1. My application was not UAC aware previously, so I told it run with the highest permissions in the settings.  If I run it manually, it works.
    2. The account running the job has adminstrator privledges already (which without UAC is enough, with UAC it still fails).

    I have tried this under two job schedulers, a professional one (Active Batch) and the Task Scheduler that comes with Windows Server 2008.  Neither work.  The job is setup to run with the highest privledges and is running under an account that's an admin.  If I manually run this job, it works. The error I get now under 2008 says simply that the service can't start (I can start it from the services manually, and if I double click the executable it will start).

    The question:

    What do I need to do, to be able to start a service from a console application on Windows Server 2008 that I haven't done above (from the Task Scheduler)? 

    • Edited by bpell Thursday, August 19, 2010 11:24 PM Additional Info
    • Moved by Martin_Xie Monday, August 30, 2010 7:13 AM Redirect to TechNet forums for better support. (From:Visual Basic General)
    Thursday, August 19, 2010 11:15 PM

Answers

  • In my idea is this a admin question.

    Try the technet forum for server 2008

    http://technet.microsoft.com/forums

     


    Success
    Cor
    Friday, August 20, 2010 6:48 AM

All replies

  • In my idea is this a admin question.

    Try the technet forum for server 2008

    http://technet.microsoft.com/forums

     


    Success
    Cor
    Friday, August 20, 2010 6:48 AM
  • I'll post there also to see what they say.  Thanks Cor.
    Friday, August 20, 2010 1:58 PM