A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
On Windows 2008 Server with IIS7, PerformanceCounterCategory.GetCategories() is not returning some performance counter categories, including the new ones such as W3SVC_W3WP and WAS_W3WP from w3ctrs...
| On Thursday, October 8th 2009 at 08:45 PM by Anonymous | No Replies |
Hi All, I want to know status of local printer whether it is out of paper, low toner etc before sending the document for printing. I asssume PrinterState or PrinterStatus should give...
| On Wednesday, October 7th 2009 at 02:09 AM by muhammad | No Replies |
Hi, I looked all over the web for a simple .NET application that uses .NET class libraries to create a namespace, create class, add properties to it and also add intances to this class. I've seen...
| On Friday, October 2nd 2009 at 05:39 PM by tzvikaz | No Replies |
I generated the code below with wmi code creator. It listens the device changings. I want to prohibit the usb access or cdrom access in my computer section. Is there any ideas about it like sddl ...???...
| On Friday, August 28th 2009 at 11:58 AM by Tolga Ongunsu | No Replies |
I am using System.IO.DriveInfo.GetDrives() to get all the drives of a system. Now for each of the returned drives I want to find out if they are floppy drives or not. System.IO.DriveInfo has a...
| On Monday, August 17th 2009 at 07:11 AM by Anonymous | No Replies |
Hi all, could anyone suggest a way to set the paper size in default printer in vbs. I have used WMInterface to do this, but it is not setting the paper size.(below is the code) strComputer = "."...
| On Wednesday, August 12th 2009 at 03:00 AM by Anonymous | No Replies |
hi, i am trying to start Server service thru .net code on remote machine but unable to do so. here is the code.. ConnectionOptions con = new ConnectionOptions(); con.Authority...
| On Friday, July 17th 2009 at 07:42 AM by Anonymous | 1 Reply |
Hello all, I require two classes of WMI namely Win32_PerfFormattedData_InetInfo_InternetInformationServicesGlobal and Win32_PerfFormattedData_W3SVC_WebService for gettin some data. But in some...
| On Wednesday, June 10th 2009 at 12:34 AM by Anonymous | 1 Reply |
Hi, I came across a time differential problem recently using WMI inside of VMPlayer which caused queries on the event log using TimeGenerated to have a two hour differential between the time a WQL...
| On Sunday, May 24th 2009 at 10:06 PM by pantagruel | No Replies |
Hi everyone, I'm working on an application that is supposed to list the active wireless network adapters _without_ including packet schedulers. This is what we have so far ... Dim searcher...
| On Friday, May 15th 2009 at 09:13 AM by Christoph | No Replies |
I'm trying a relatively simple task between two separate WMI-registered classes - MyOwner and MyItem. On MyOwner, I want to declare a task called "ProcessItem" that takes in an instance of MyItem...
| On Thursday, May 14th 2009 at 05:35 PM by Anonymous | No Replies |
Hi there, I am trying to use the changezonetype wmi command to change a DNS zone from secondary to primary. I can created a zone but everytime i call this piece of code below to change the zone...
| On Wednesday, May 13th 2009 at 03:29 AM by Niall | No Replies |
Obtain the initial locator to WMI : hres = CoCreateInstance( CLSID_WbemLocator, 0, CLSCTX_INPROC_SERVER, IID_IWbemLocator, (LPVOID *) &pLoc); I...
| On Thursday, April 30th 2009 at 07:35 AM by Anonymous | No Replies |
Hey, Im trying to kill a process by name. I have used the msdn example code of killing a process by pid. I wrote a method to get the pid using the name of the process, and its working fine till...
| On Monday, April 20th 2009 at 01:50 AM by Anonymous | No Replies |
I have a problem on several of my PS 4.5 Enterprise servers (w2k3). The WMI appears to have corrupted. When looking at the WMI properties, Citrix/Management is no longer there, but a repeat of the...
| On Thursday, March 19th 2009 at 11:18 AM by Anonymous | 9 Replies |
I downloaded FCTopology.doc from here: http://www.microsoft.com/whdc/device/storage/FCTopology.mspx, and then ran the GetFcpTargetMapping Method vbscript example on several hosts with multiple LUNs...
| On Thursday, March 5th 2009 at 01:09 AM by Anonymous | No Replies |
Hi all, I've problem with win32_terminalservice instance. I see class definition but no instance on Terminal server. I can see other TS configuration classes instances but no win32_terminalservice...
| On Monday, February 23rd 2009 at 02:41 AM by Martin | No Replies |
I have a need to determine programmatically whether or not a USB drive is encrypted. I've looked at "Capabilities" under CIM_DiskDrives and CIM_MediaAccessDevice, but neither my local hard drive (...
| On Friday, February 20th 2009 at 02:28 PM by Anonymous | No Replies |
All, I have a code developed in WMI that connects to remote machine to collect system information. At present it uses a service account to connect to the WMI on the remote machine but I want to...
| On Friday, February 13th 2009 at 09:10 AM by Anonymous | No Replies |
Hi, What privileges the user must have to read information about disk partition? Thanks
| On Friday, January 30th 2009 at 08:34 PM by Anonymous | No Replies |
Hi All, I am getting an Access Denied while connecting a server from Win2K3 server using WBEMTEST. I will brief you what is happening exactly... I have a Windows 2003 server(XYZ) which is...
| On Friday, January 30th 2009 at 07:08 AM by Anonymous | No Replies |
Ho to re-install WMI Service which is missing on windows 2000 Server.
| On Wednesday, January 28th 2009 at 06:57 AM by Anonymous | 3 Replies |
I'm trying to use WMI Win32_Process::Start to launch a VBS file on a remote computer. But I keep getting a ReturnValue of 8 (Unknown Error). I can launch executables like notepad.exe just fine. I've...
| On Monday, January 19th 2009 at 03:54 PM by | No Replies |
Hi, how can i enumerate all availbale WMI Classes/Instances on a runnig System, preferable with .NET and C#? Thx in advance,... Regards Kerem -- -- ----------------------- Beste...
| On Saturday, January 10th 2009 at 07:52 PM by =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | 5 Replies |
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...
| On Tuesday, December 30th 2008 at 06:07 PM by Anonymous | No Replies |
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...
| On Wednesday, December 24th 2008 at 07:29 PM by Anonymous | No Replies |
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...
| On Monday, December 22nd 2008 at 10:42 PM by | No Replies |
Dear all, Is there any way to change the IP settting using WMI? Includng the Gateway and DNS etc. Thanks for any help. Tedmond
| On Thursday, November 27th 2008 at 03:03 AM by Anonymous | 1 Reply |
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...
| On Thursday, November 13th 2008 at 07:01 AM by Toby | No Replies |
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...
| On Monday, November 10th 2008 at 02:39 AM by Anonymous | No Replies |
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?
| On Friday, October 31st 2008 at 04:01 PM by Anonymous | No Replies |
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...
| On Friday, October 10th 2008 at 04:51 AM by Anonymous | 2 Replies |
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...
| On Tuesday, October 7th 2008 at 12:22 PM by Trups | No Replies |
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 ) {...
| On Monday, October 6th 2008 at 05:52 PM by Anonymous | No Replies |
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...
| On Thursday, October 2nd 2008 at 01:25 PM by dln | No Replies |
how to determine the connection status of an interface on windows 2000? in xp, 2k3, etc... I used the class win32_networkadapter's netconnectionstatus field, but this field doesn't exists on 2k :(...
| On Wednesday, September 24th 2008 at 03:56 PM by Anonymous | 1 Reply |
In Windows XP, the WMI query below returns string values of "1' for Letter, "5" for Legal, and "17" for Tabloid. On Vista, the query returns string values of "Letter 8 1/2 X 11 in." for Letter, "...
| On Tuesday, September 16th 2008 at 02:00 PM by Tim | No Replies |
How can i get subscribed or notified when a value in the NetworkAdapterConfiguracion namespace has been changed? For instance, i have a program that display IP configuration of network cards but...
| On Sunday, September 14th 2008 at 11:33 PM by Christian Reizlein | No Replies |
Using WMI CIM Studio in the namespace \root\MicrosoftIISV2 and I execute Select * from IIsWebServerSetting I am not seeing changes when they occur on the website, such as a change to the application...
| On Tuesday, September 9th 2008 at 08:02 PM by Anonymous | No Replies |
Hi, I am trying to get the RF noise level from my wireless card using WMI. I can acheive this on my Cisco card using the Atheros5000 namespace, but I am having trouble trying to get a value from...
| On Friday, August 29th 2008 at 12:26 PM by Toby | No Replies |
Hello There, I am working on a custom application which uses WMI to collect information from the system. We found that the systems where WMI has some issues it failed and we didn't get the output...
| On Thursday, August 28th 2008 at 03:07 PM by Anonymous | No Replies |
Install KB888111 in Winxp sp2,but cann't get audio device information through WMI WIN32 ENTITY,but after instal vs2005,i can get it... I want to know,how can i get audio device information through...
| On Wednesday, August 20th 2008 at 08:55 AM by Anonymous | No Replies |
How do you retrieve the SCSI drive information (such as vendor, serial number etc) for pass-through disks for a VM? The Hyper-V WMI storage classes do not appear to suport these.
| On Tuesday, August 19th 2008 at 12:55 PM by Anonymous | No Replies |
I've created a seperate assembly with a class that is intended to be published through wmi. Then I've created a windows forms app that references that assembly and attempts to publish the class....
| On Thursday, August 14th 2008 at 12:54 PM by Jeremy | No Replies |
Currently, we are developing a SCSI controller card, the functions of EDMA, PIO is OK. However, when we add the WMI part to the code, it seems the code doesn't work. I referred the example of aha154X...
| On Monday, August 11th 2008 at 08:48 AM by Anonymous | 1 Reply |
I am using the following code to check the disk space of a server. It runs ok for several months. But it turns out the following error suddenly one day. I hope someone could give me some direction....
| On Wednesday, August 6th 2008 at 10:40 PM by Anonymous | 1 Reply |
Hi all, I have a simple little Windows service that retrieves events from a remote computer through WMI and a ManagementEventWatcher. It all works just fine... as long as the user I specify in...
| On Wednesday, August 6th 2008 at 07:38 AM by mikael.lindsten@gmail.com | No Replies |
I have 66 logical disks on a hard drive, but only one is mapped to a drive letter. It seems that querying Win32_LogicalDisk only shows me only this one, not the other 65. Is there a way to get info...
| On Friday, August 1st 2008 at 07:46 AM by Anonymous | No Replies |
Does anyone know where i can find the current RAID status of my drives on WMI? Im using software raid (dynamic drives) so its not related to hardware, but i want to monitor a raid rebuild with WMI...
| On Tuesday, July 29th 2008 at 05:32 PM by Christian Reizlein | No Replies |
When using System.IO.FileStream, I write 8 bytes, then seek to the start of the file, does the 8 bytes get flushed on seek and the buffer become a readbuffer at that point instead of being a write...
| On Monday, July 28th 2008 at 09:38 PM by DR | No Replies |