WaitForNextEvent() - does not timeout despite the proper flag?
Wed, 23 Jul 2008 17:01:56 -0400
Hi all,
I have a C# app that uses WMI to launch a process on a remote machine, and
needs to wait for that process to shut down before moving on. After I've
setup a ManagementEventWatcher with the following WQL:
select * from __InstanceDeletionEvent within 1 where TargetInstance ISA
'Win32_Process'
.. ...
|
ProcessorLoad
Tue, 22 Jul 2008 18:24:36 +0100
Hi,
I got a WQL query searching for "LoadPercentage" in "Select * from
Win32_Processor" from "root\\cimv2" working nicely. However, if I redo the
search over and over, I keep getting the same number back. I have to redo
the entire search from scratch each time, starting from this code...
BSTR bstrNamespace ...
|
Win32_PerfFormattedData_Tcpip_NetworkInterface CurrentBandwidth
Tue, 22 Jul 2008 08:24:02 -0700
Under XPSP2 this property is of type UINT32 (as documented) but on my Vista32
Home Premium this property is coming back as BSTR (string) ????
Am I doing something wrong ? Or has the definition changed in Vista ?
The same is true for Win32_NetworkAdapter.Speed property. ...
|
Win32_PerfFormattedData_Tcpip_NetworkInterface Name property
Tue, 22 Jul 2008 07:57:01 -0700
1) seems to be replacing '(', ')' and '/' characters in the network adapter
name with '[', ']' and '_' respectively. Is there a list of characters that
will be replaced by WMI ?
2) The Name property seems to have the format "<adapter_name> -
<friendly_name>". Is this documented somewhere ?
eg. The if t ...
|
Assigning drive letters
Tue, 22 Jul 2008 12:15:49 +0200
Hi,
How can I change the letter of a drive via WMI?
--
Alessandro ...
|
how to execute non-static method on class instance?
Thu, 17 Jul 2008 06:04:02 -0700
Hello,
I have one question. If I want to execute static method in WMI, there is no
problem.
CComPtr<IWbemServices> pSvc = NULL;
// set pSvc through ConnectServer()
hres = pSvc->ExecMethod(_bstr_t(_T("BcdStore")), _bstr_t(_T("OpenStore")),
0, NULL, pInParamsObj, &pOutParamsObj, NULL);
This works since ...
|
PasswordRequired on Win32_Account always true
Thu, 17 Jul 2008 03:21:27 -0700 (PDT)
Does anyone have any idea why i obtain always passwordRequired = true
for every account on my system, having users without password? ...
|
|
|
SystemRestore Disable problem (WMI) RSS
Wed, 16 Jul 2008 11:45:00 -0700
Hi,
I have changed the example application (calling WMI provider) to call
Disable method from SystemRestore. Problem is that it is not working...During
ExecMethod I get 0x80041002 result all the time (it is the first error which
is occuring in the code).
My code fragment:
BSTR MethodName = SysAllo ...
|
ignore last statement
Wed, 16 Jul 2008 11:40:41 -0700
ignore.. it appears that it had to be synced through the control groups before it would happen again.
16-Jul-08 01:45:34
when I changed the image path back to the full length it origionally started at, the sc.exe process is functioning perfectly, this may not be an sc.exe problem at all.
just my 2 cent ...
|
ignore last statement
Wed, 16 Jul 2008 11:40:40 -0700
ignore.. it appears that it had to be synced through the control groups before it would happen again.
16-Jul-08 01:45:34
when I changed the image path back to the full length it origionally started at, the sc.exe process is functioning perfectly, this may not be an sc.exe problem at all.
just my 2 cent ...
|