Can I Try to Ping a Website thru a specific adapter?
I hope this isn't too basic a question. The title kind of asks it all. :-) TIA! Rich ...
I hope this isn't too basic a question. The title kind of asks it all. :-) TIA! Rich ...
I want to create a software which can accept Print Jobs from other computers, and then route those print jobs to PCs on LAN with printers attached. How it's going to happen -> 1- When that software called "Virtual Printer" is installed on a computer "X", Windows should think that it is a print driver/attached printer to that computer. ...
I am working on project for controlling some devices through lpt port. I am using inpout32.dll to get raw access to ports and now trying to enumerate all available LPT ports and get their I/O Range. I now I can check device manager, but is there any more automated way? Now I am trying to use WMI some sample code that should work but it...
Hi, i want to create a wrapper class for specific WMI functions that affect Bitlocker functionality. The first step is to get all the Bitlocker volumes of a machine so I created a Console Application and did this: private static ManagementClass management; private static ManagementObjectCollection Volumes = null; static void Ma...
I'm getting this error: Unhandled Exception: System.Runtime.InteropServices.COMException (0x80042001): Exception from HRESULT: 0x80042001 at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at System.Management.ManagementEventWatcher.Start() at MyNamespace.Program.Main(String...
Hi I am using the wmi in c++ to set the IPv6 ipaddress. The IPv4 address is working fine using "EnableStatic" which is part of wmi class named "Win32_NetworkAdapterConfiguration". Can any one help me setting the ipaddress for the ipv6 address using WMI. If any sample codes please refer me. I tried in net i am not getting idea for this....
I want to determine the absolute path of files used by a known process by reading the command line. Currently, the process is started with relative paths in the command line that point to various files such as config files. The problem is that if the paths are not relative to the folder containing the executable, I have no way of convert...
I am detecting when our proprietary USB device is attached to a PC. When we detect this, we get the related Win32_PnPEntity. We want to use this Win32_PnPEntity as a source of the following information: - USB Descriptor VID, PID, REV, Firmware Version. - Logical Disk Drive Volume and Partition information to get Drive Letter informatio...
This is the command line I want to use inside my VB.NET program. Look for the running process "mpc-hc.exe" and get the commandline of the running process wmic process where name='mpc-hc.exe' get CommandLine I want to retrieve the output from that command into a string. I know that it could be done natively in a VB.NET program and I ha...
I am rolling my own simple web-based perfmon, I am not happy with some of the data I can get like cpu usage, which i use via a sql query. I am able to get memory usage just fine...I will attach a screenshot, so you can see what I currently have for my main/home/dashboard page. I am currently using webcharts3d, which i am loving being ab...
I used WMI way back during the .net 2.0 days. I had to use it coz there was no alternative. But today as we have a lot of functionality in BCL, does it still makes sense to use WMI? Is it supported by MS - Should I use this in my production code? One of the things I hate about it is that I need to write string query. It is prone to typo...
Is it possible to set IP address (or anything else) for a network interface which is currently down? I am using WMI, that means ManagementObjectCollection and Invoke methods. But it seems there is no way how to configure IP in c# on a network adapter which is currently down - cable not connected? There is no error message. For example,...
How can I add programatically service dependencies to an installed Window service ? It would really helpful, If someone suggest solution using WMI through the System.Management namespace . What is property for dependencies on which I can set services? ...
I need to mirror all of the DNS entries on our DNS server in a SQL database. I am able to query DNS using WMI and C#. And I can query SQL for existing records using L2S but there is a lot of room for improvement. What does the LINQ To SQL statement look like that will insert records that are not in the ManagementObjectCollection returne...
Is there anyway using WMI/.Net to grab monitor information such as Manufacturer, Serial Number, Monitor Size etc.? Using a script is an option as well, or can I query the registry directly to get this information? SELECT * FROM Win32_DesktopMonitor doesn't really return any useful information for me in this case. ...
I am trying get all local machine services. But why are some services missing from Win32_Service class? ...
I have a small app which automatically creates necessary SQL Server Alias entries for some servers. The bulk of the code looks like this: private static void SetAlias(string aliasName, string server, string protocol, int? port) { var scope = new ManagementScope(@"\\.\root\Microsoft\SqlServer\ComputerManagemen...
Hi! I've been trying to figure out why I can't add a website record to my domain on WebsitePanel. The server is running `Win Server '08 R2 with IIS7.5 EDIT 1: Having tried going over this since before the OP date, I've downloaded the source for WebsitePanel and I've determined that the group that it can't find is in fact IIS_IUSRS. An...
Hello Is there a way to query via WMI in C# like you can do with the System.Diagnostics.PerformanceCounter Class? simply put how can i pass it a string like "\localhost\Processor(0)\% Processor Time" and it would build the correct WMI query for me? Reason being is i have this huge list of counters in a flat file from a legacy program and...
I found a code on net and have been trying to get more information about mo[]. I am trying to get all the information contained in ManagementObjectCollection. Since parameter in mo is looking for an string value which I dont know, how can I get all the values without knowing its parameter values. Or if I want to get all the indexer val...