task scheduler problem as a power user on windows server 2003

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Warren (wfp2a_at_yahoo.com)
Date: 04/20/04


Date: 20 Apr 2004 08:23:33 -0700

Hi everyone,

I am having trouble with the code shown below when I try to run logged
in as a power user on a windows server 2003 machine. It runs fine as
an admin user on 2003 and it runs fine as power user or admin on win
xp pro. I also noticed that I cannot open the Scheduled Tasks item
from the control panel when I am logged in as a power user on server
2003. I have seen various posts related to the task scheduler but
nothing seems to clearly answer whether this functionality is by
design in the system and whether there is any way to get around the
situation. Also, does anyone know whether Win XP will be headed in
this direction in the future (via some service pack maybe?) or are we
safe with current functionality? Thanks so much for your help.

Warren

         

        ITaskScheduler* pITaskScheduler = 0;
        if (SUCCEEDED(hr = CoCreateInstance(CLSID_CSchedulingAgent,NULL,CLSCTX_INPROC_SERVER,
IID_ITaskScheduler, (void**)&pITaskScheduler)))
        {
                //I get to here successfully...

                IEnumWorkItems* pIEnumWorkItems;
                if (FAILED(pITaskScheduler->Enum(&pIEnumWorkItems)))
                {
                        //it always fails when I am a power user
                        //and comes into here

                        // Release it
                        pITaskScheduler->Release();
                        pITaskScheduler = NULL;
                        return E_FAIL;
                }
                //do some stuff

        }



Relevant Pages

  • Opening jpegs
    ... We have a problem with Windows XP machines running on our Windows Server ... 2000 network. ... Unless you are a power user or admin, ...
    (microsoft.public.windowsxp.photos)
  • Power Users and Scheduled Tasks
    ... I am not an network person so I hope I am explaining this correctly. ... In a windows server 2003 environment, can a power user have access to ...
    (microsoft.public.windows.server.general)
  • Re: Power User Group
    ... Nope, since Power User is lower than Admin, they cannot raise themselves to ... --Jonathan Maltz [Microsoft MVP - Windows Server, ... tutorial site :-) ...
    (microsoft.public.windows.server.general)
  • Re: Allow non-admin to create/edit scheduled tasks
    ... Another thing that comes to my mind is that the scheduled tasks may/can be ... BLOG --> http://blogs.dirteam.com/blogs/jorge/default.aspx ... administrator (they are a power user I believe) on a 2003 Standard Server ... SchTasks.exe with modify rights but that did not do the trick. ...
    (microsoft.public.windows.server.security)
  • Allow non-admin to create/edit scheduled tasks
    ... administrator on a 2003 Standard Server to ... Currently when a Power User double clicks ... on Scheduled Tasks within Control Panel they get an Access Denied message. ... Charles ...
    (microsoft.public.windows.server.security)