any example C#.Net example for RequestResponse ?
Tue, 11 Mar 2008 14:57:00 -0700
I've only been able to find VBscript examples... such as...
'##############START CODE SNIPPET########
Dim IpmiProviders
IpmiProviders = Array("microsoft_ipmi")
Dim oClass, oIpmi, hasIpmiProvider, strComputer, providerName
hasIpmiProvider = false
Set oSvc = GetObject("winmgmts:\root\wmi")
For Each p ...
|
Maximum command line length
Mon, 10 Mar 2008 16:35:00 -0700
I'm using the WMI Scripting API to create a process. It works fine most of
the time. However, every once in a while Win32_Process.Create fails and
returns 9. The docs say 9 means "Path not found":
http://msdn2.microsoft.com/en-us/library/aa389388(VS.85).aspx
The command line I'm executing is of the form:
...
|
run exe\bat\vbs file on remote PC + blocking
Mon, 10 Mar 2008 14:37:38 -0700 (PDT)
Hi All,
I wrote app (C#) which runs bat file on remote PC. All works fine
except for the fact that the application
doesn't wait for the remote process to end.
Is there a way to block the script until the process is done?
TIA.
Alexia. ...
|
Disable TouchPad
Mon, 10 Mar 2008 01:42:01 -0700
Hello.
I want to find the way to programmatically disable the touchpad on a laptop
computer. I think such thing could be possibly done through WMI. If anyone
has an idea of which namesapce can be used for such a purpose, or any other
way to do it, let me know.
Thank you in advance.
Max Pavlov ...
|
IWbemServices.ExecMethod, what is strObjectPath parameter ??
Wed, 5 Mar 2008 15:11:00 -0800
my goal is to send SMS_Attention to the Microsoft_IPMI, however, the only
error code I ever receive is INVALID_PARAMETER.
It seems to me that the INVALID_PARAMETER error is received from
ExecMethod() because the strObjectPath is incorrect:
BSTR bsClassName2 =
SysAllocString(L"Microsoft_IPMI.InstanceName= ...
|
How to use the Win32_PhysicalMedia.MediaType along with disc drive
Wed, 5 Mar 2008 01:29:01 -0800
Using WMI along with the Win32_CDROMDrive class I can retrieve the MediaType,
which is always CD-ROM.
I found a more specialised MediaType property in the
Win32_PhysicalMedia.MediaType.
This property would name the exact media type e.g. DVD-RAM, DVD-ROM, CD-ROM,
etc.
How can I retrieve the Win32_PhysicalM ...
|
Problem with path name with space in it win32_services
Tue, 4 Mar 2008 08:36:30 -0800 (PST)
Hi all
I got a little issue with a query. i'm looking for a service name from
a running process. I've found a really interesting code on the
microsoft site.
List Services Running in a Process
http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true
the process is running.. but the path ...
|
|
|
Hell with creating service
Tue, 4 Mar 2008 02:29:02 -0800
Hello all,
I have to install 2 services. The name of each service is related to a
domain name
for example:
strSvcWorkloadName = "tws_maestro_" & DomainArray(a) & "_tracker"
strSvcTokenName = "tws_tokensrv_" & DomainArray(a) & "_tracker"
and the parameter DomainArray(a) can have 3 values
I know ...
|
"0x80041001 : Generic failure" when instantiating Win32_SCSIContro
Sun, 2 Mar 2008 10:26:00 -0800
Hello,
I am getting "0x80041001 : Generic failure" error message when attempting to
instantiate the Win32_SCSIController WMI class on just a handful of over
1,000 servers.
I have gone through the "WMI Isn't Working!" document
(http://www.microsoft.com/technet/scriptcenter/topics/help/wmi.mspx),
attempt ...
|
my gf getting doggey
01 Mar 2008 19:18:29 GMT
PORNOLATION RELEASE
...
|