Group:  .NET General / Allgemein ยป microsoft.public.dotnet.framework.wmi

Threads Replies Last Post
14 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  
mofcomp.exe crash on instrumented hierarchy
Hi all, I have a persistant crash of mofcomp.exe on the following hierarchy: [ManagementEntity] public class MyBaseClass { [ManagementKey] public string InstanceId { get; protected set; } [ManagementBind] public void MyBaseClass([ManagementName("InstanceId")] string id) { InstanceId = id; if (null != id) Instrumentation.Publish(this); } } [Managem...
1 12/30/2008 10:07:10 PM
Problem Accessing Security Event Log
I am trying to execute eventquery.vbs located in c:\windows\system32. following is the systax. eventquery.vbs /S ComputerName /FO TABLE /L Security The above syntax is working fine while using any computer on Network. But on same Machine It is not working. It displays the error of invalid Class. As we verified the above error using wbemtest tool Enum Classes, on this machine, w...
1 12/24/2008 11:29:01 PM
execute process on remote machine and capture output
Is there a way to execute a console application on a remote computer and capture the output (what would normally be displayed in the console window) using the WMI Win32_Process class? I'm currently using the Tivoli Remote Execution service that is installed on our corp pc's which makes this very easy. However, the new builds do not include this service so i'm being forced to come up with a...
1 12/23/2008 2:42:41 AM
Changing IP address
Dear all, Is there any way to change the IP settting using WMI? Includng the Gateway and DNS etc. Thanks for any help. Tedmond...
2 12/2/2008 12:51:14 PM
WMI namespaces no longer available
Hi, can anyone shed any light on this please? I developed a tool to read the signal strength from a wireless card using the WMI namespace, and it also got the noise level by using "SELECT * FROM Atheros5000_NoiseFloor". However this no longer works (last time I used it and it was working was in September), and when I use WMI Object Browser the WMI namespaces are no longer there (for any wi...
1 11/13/2008 11:01:13 AM
DDR2 Memory Type Problem in win32_physicalmemory
I have DDR2 RAM on my windows XP SP 2 Machine, but on WMI explorer (win32_physicalMemory) i am getting Memory Type = 0(Unknown) instead of 21(ie for DDR2) ,NameSpace is CIMV2. can you please tell me how to get DDR2 Memory Type From WMI. ...
1 11/10/2008 6:39:01 AM
Folder Name Change
I'm looking for a way to notify me when folder names on a network share are changed. What I need is the old name and what the new name is now. Is there a way to do this?...
1 10/31/2008 8:01:01 PM
Implementing method provider with WMI.NET Provider Extension 2.0
Hi all, I'm trying to create a managed class with a WMI metod that would return (either as a return value or an output parameter) an object. Here is an example: namespace test { [ManagementEntity] class Test { [ManagementBind] public Test([ManagementName("Name")] string name) { Name = name; } public string Name { get; private set; } } [ManagementEntity] c...
3 10/16/2008 7:49:00 AM
WMI !!!
Hi, I ma using WMI Query "Select * from AntiVirusProduct". If I do not find a specific product or it is disable, then I have to insert some lines to AntiVirusProduct table. Is it possible? If not then what I need to update so that next time WMI pick the product. How AntiVirusProduct table get filled? Thanks in advance TS ...
1 10/7/2008 4:22:03 PM
Win32_LogicalDisk does not work for floppy drives.
The following method works great on CD's, removable drives, regular drives. However for a floppy it always return "Not Available". Any ideas? public static void TestFloppy( char driveLetter ) { using( var searcher = new ManagementObjectSearcher( @"SELECT * FROM Win32_LogicalDisk WHERE DeviceID = '" + driveLetter + ":'" ) ) using( var logicalDisks = searcher.Get() ) { ...
1 10/6/2008 9:52:05 PM
Access Permissions to Execute Method on Win32_NetworkAdapterConfiguration
Hello all, I'm trying to figure out what permissions are required on a Windows Server 2008 system that will allow me to execute the Win32_NetworkAdapterConfiguration.EnableStatic method. I have a segment of code that _does_ work, providing I'm running as an Administrator. However, if I run this same code as a non-admin user, it fails with error 0x80041003 or WBEM_E_ACCESS_DENIED. T...
1 10/2/2008 5:25:40 PM
WMI Documentation
Is there somewhere where WMI is documentated? I've looked at the documentation in the MSDN and it talks about how to access the stuff but doesn't list what's available where in the WMI. I've specifically looking for this to access/update network options ( gateway, tcp/ip address, proxy info, ....) TIA - Jeff. ...
1 6/28/2007 12:24:11 PM
GetFCPTargetMapping - multiple LUs mapped from multiple storage sub-systems
I'm attempting to use GetFCPTargetMapping (http://msdn2.microsoft.com/ en-us/library/ms806849.aspx) against an HBA which can see multiple LUs from multiple sub-systems. I had expected that all LUs regardless of the sub-system would be listed, however I only get back the LUs from the first connected sub-system. I've been reading and re-reading the documentation, but to no avail. There appears ...
3 6/28/2007 7:34:36 AM
Get disk and partition numbers for drive letter via WMI
If I query WMI for mounted drives of type 3 (physical hard drives) and end up with a letter (like D:), how can I use WMI to get the correct corresponding partition and drive values for drive D:\ ? Is it possible to even get the entire ARC path from there? AS in, multi(w)disk(x)rdisk(y)partition(z) That would be nice, but I'm willing to settle for just rdisk() and partition() (basicall...
1 6/28/2007 5:52:43 AM
Diabetic Recipes and More...
Hi Cookers, Welcome to our new website, cookersworld.com. We have expanded the content links to ad Mr. Emeril Lagasse's fine recipes along with recipes for diabetic's. The website is full of great links from our partners. We have links to free cookbooks and more. Please stop by and support us. Visit all our links and choose the best recipe for you or your family. We look forward t...
1 6/24/2007 8:26:55 AM
How to query to look for the creation of a .xls file?
Need a sample query for example that can watch for the origination of just a .XLS file in WMI. So far I've come up with this (note, not entirely my work, cobbled together from websites as I'm still new to WMI). SELECT * FROM __InstanceCreationEvent WITHIN 10 WHERE TargetInstance ISA "CIM_DirectoryContainsFile" AND TargetInstance.GroupComponent = "Win32_Directory.Name=\"e:\\\\Test \"" ...
2 6/21/2007 7:04:16 PM
Problems with LIKE clauses on WMI queries to MicrosoftExchangev2
I'm having trouble specifying a WHERE or LIKE clause on my WMI query to the MicrosoftExchangev2 namespace. This works OK Select * From Exchange_Mailbox Where MailboxDisplayName='MyAlias' This returns no data: Select * From Exchange_Mailbox Where MailboxDisplayName LIKE 'My*' neither does this: Select * From Exchange_Mailbox Where MailboxDisplayName LIKE 'My%' Other options fail too (L...
2 6/18/2007 11:46:37 PM
How to create an WMI permanant event consumer
i want to monitor some processes in my system how can i write a permanant event consumer for this so that i can send a mail through the script...
1 6/14/2007 9:42:00 AM
Wrong MAC-Adresses of AccessPoints in MSNdis_80211_BSSIList / MSNdis_80211_WLanBssId
Hi there I'm trying to write something best described as a wmi-ssid-scanner tool, where to goal is to get a list of all the access points within the range of my notebook (IBM T42, built in Wireless, XP SP2...) I managed to acess the MSNdis_80211_BSSIList with its MSNdis_80211_WLanBssId Objects. The amount of Objects in the array is the same as the amouns of access points i see wenn i d...
1 6/13/2007 3:39:56 PM
Problem with WMI Event Notification
I am using WMI to monitor few critical processes running in my server. I subscribe to instance deletion event and check whether the process is my processes and send a mail. But it happens that sometimes instancedeletion event is called for all the processes in my system when they are still running. After few mins or seconds the creationevent is called for all these processes. I dont kno...
1 6/13/2007 5:20:00 AM
The problem in access to remote server with Windows Credentials
Hello, Can anybody help to solve the following problem? My Windows Service trying to access remote machine to get WindowsDirectory Property over Win32_OperatingSystem WMI class. Both servers are in the same Active Directory domain, so I create special active directory user and impersonate to it before invoke WMI. My code looks like: foreach (WMI.OperatingSystem sy...
2 6/7/2007 11:27:41 PM
WIN32, CIM, MSFT
most info seems to be in all 3 of these... err.. namespaces? is any one of them better than the other? should i typically stick to win32 or cim or does it not matter? Justin ...
1 6/6/2007 1:54:59 PM
Disabling hardware or services
Im having some trouble disabling hardware using WMI. I got a handle on the device, but when I call SetPowerState I get a type mismatch. The definition of the method says it takes an int (power level), datetime (when to do it) objNetCard.SetPowerState(6, Convert.ToDateTime(Now())) :( Seeing as that wasnt going anywhere I tried stopping the service for the driver using StopService...
7 6/4/2007 5:15:32 PM
mapping certificates programatically c#
I am trying to map client certificates automatically using WMI and C# in my web service application. I understand that there is a IIsCertMapper class, but i am totally lost like how to create/get an object of this class. i tried using DirectoryServices namespace but was unsucessful. now i am trying with System.Management namespace, but i am kind of lost. can someone help me. thanks kris...
2 6/1/2007 9:06:52 PM
Problems with IWbemPathKeyList::GetKey
I'm having trouble getting this function to work. There is an inconsistency in the documentation for this function with respect to the key value argument. The text of the document says that the user needs to allocate the string buffers for the return strings before calling the function. I have done that (using the same call with null buffer pointers to get the buffer sizes). However, the ...
3 5/25/2007 1:58:04 PM
14 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  

Home | Search | Terms | Imprint
Newsgroups Reader