PdhCollectQueryData won't collect data on WXP after SP2

From: Randy Scarborough (void_at_ibm.net)
Date: 02/16/05


Date: Wed, 16 Feb 2005 14:56:09 -0800

I am running Windows XP Home and have a server application that is started
by Scheduled Tasks when the system starts up (not when a user logs on).
This app uses PdhCollectQueryData to monitor the RAS networks througput.

On XP with SP1 this ran fine, collecting data and logging it. On XP with
SP2 the data collected always has the value zero.

 If I log on to the userid that created the Scheduled Task that starts the
application, and then run the server app, the data is collected normally.
But it is not collected when the app is started by Scheduled Tasks at system
logon.

Any idea what has changed, or how I can get this data?

Thanks.

Randy Scarborough



Relevant Pages

  • Re: Grant Object Access
    ... Have you examined the IIS settings for the web app in IIS for differences ... > Now that I had resolved the issues on my test server, ... > "Roger Abell" wrote in message ... >>> has no control over the scheduled tasks in themselves (all the user can ...
    (microsoft.public.windows.server.security)
  • Re: Remote Task Scheduler access problem
    ... The server OS is Windows Server 2003 Standard Edition SP1, ... create or modify scheduled tasks, by using the cacls command to modify the ... the Administrators group to access scheduled tasks, then it saves me a lot ...
    (microsoft.public.windows.server.general)
  • RE: Collect Server Performance Data is taking a long time
    ... Thank you for posting in the SBS newsgroup. ... Please check the Scheduled Tasks log for more info. ... You can also open the properties of the "Collect Server Performance Data" ... I recommend you to reinstall SBS Monitoring component. ...
    (microsoft.public.windows.server.sbs)
  • RE: Shutdown.exe
    ... How can I configure it to restrat an exchange 2003 server running on server ... and then click Scheduled Tasks. ... you may utilize Event Log Monitor software to accomplish this task. ... Microsoft does not control these sites and has not tested any software ...
    (microsoft.public.win2000.new_user)
  • Re: HOW ==> Users View Scheduled Tasks on a Server ??
    ... task is set to run under a domain admin account which he does not know). ... i see no risk at all in just lettting him VIEW the scheduled tasks! ... > server in order to be able to manage or even see the scheduled tasks on ... >> will run mytask.job on the remote server...but only if you are an admin. ...
    (microsoft.public.win2000.security)