Ivan
Thu Jun 24 12:16:10 CDT 2004
If your machine is Win2000.
you would have to use
winmgmt.exe /resyncperf <PID_OF_WINMGMT_AS_SERVICE>
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"scott_wu" <scott_wu@spirox.com.tw> wrote in message
news:db31fbad.0406240244.4685ddb8@posting.google.com...
> Thanks a lot
> I found the following error log
> =======================================
> (Wed May 05 14:15:47 2004) : Performance library netfxperf.dll will be
> ignored as it was previously disabled (WbemAdapStatus = -1).
> (Wed May 05 14:15:48 2004) : Performance library perfproc.dll status
> is in an invalid state (ADAP_PERFLIB_OK).
> (Wed May 05 14:16:16 2004) : Performance library Perfctrs.dll status
> is in an invalid state (ADAP_PERFLIB_OK).
> (Thu Jun 24 17:42:40 2004) : WMI ADAP requires a process ID following
> the /resyncperf command line parameter. Syntax: winmgmt /resyncperf
> <pid>.
> =======================================
> However, I could not find the wmiadap.exe file on my computer
> ^ - ^ ......
> Scott_Wu
>
>
>
>
>
>
>
> "Ivan Brugiolo [MSFT]" <ivanbrug@online.microsoft.com> wrote in message
news:<uWJ1QwVWEHA.716@TK2MSFTNGP11.phx.gbl>...
> > That class is created by WmiADAP.exe and/or winmgmt /resyncperf
> >
> > try running WmiADAP.exe /F.
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no
rights.
> > Use of any included script samples are subject to the terms specified at
> >
http://www.microsoft.com/info/cpyright.htm
> >
> >
> > "scott_wu" <scott_wu@spirox.com.tw> wrote in message
> > news:db31fbad.0406222345.1b492cbe@posting.google.com...
> > > Hi all:
> > > I have the following script
> > > ====================================================================
> > > Set objServices =
> > GetObject("winmgmts:{impersonationLevel=impersonate}!root\cimv2")
> > > ...........................................
> > > Set objWMIObjects =
> > objServices.InstancesOf("Win32_PerfRawData_PerfProc_Process")
> > > '''Win32_PerfFormattedData_PerfProc_Process for XP
> > > .............................................
> > > For Each ManagementObject In objWMIObjects
> > > strResult = vbcrlf & "PercentProcessorTime : " &
> > > ManagementObject.PercentProcessorTime & vbcrlf
> > > strResult = strResult & "VirtualBytes : " &
> > > ManagementObject.VirtualBytes & vbcrlf
> > > =====================================================================
> > > This one work fine on my winxp nb, my lab cluster environment
> > > But fail on my customer cluster machine, no error return, just like
> > > objWMIObjects has no items
> > > Any idea ?
> > > P.S I use mofcomp perf....mof already but still couldn't work
> > > Scott_Wu