Ask a questionAsk a question
 

Answerscheduled tasks

  • Monday, November 02, 2009 7:36 PMRanga1 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    In windows 2008 servers, when I query from command line like thi:
    schtasks /query /s server - no tasks are listed

    But In the Task Scheduler GUI, I am able to see "All running tasks".

Answers

  • Tuesday, November 03, 2009 1:29 AMDave PatrickMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Are you logged on as local administrator? The query operation lists all tasks that the user has permission to view. Administrators can view all tasks on the computer. Users can view only the tasks that they scheduled.


    If the query is for local machine can you try;

    runas /user:mymachinemane\administrator cmd

    schtasks /query



    Regards, Dave Patrick .... Microsoft Certified Professional Microsoft MVP [Windows]

All Replies

  • Tuesday, November 03, 2009 1:29 AMDave PatrickMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Are you logged on as local administrator? The query operation lists all tasks that the user has permission to view. Administrators can view all tasks on the computer. Users can view only the tasks that they scheduled.


    If the query is for local machine can you try;

    runas /user:mymachinemane\administrator cmd

    schtasks /query



    Regards, Dave Patrick .... Microsoft Certified Professional Microsoft MVP [Windows]