Basically I am new to WMI and I can't figure out what I am missing here or how to debug this...
ConnectionOptions connectOptions = new ConnectionOptions();
connectOptions.Username = user;
connectOptions.Password = password;
machine = "remoteMachine.com";
ManagementScope scope = new ManagementScope(
@"\\" + m...
When I call "route PRINT" from the command line in Windows XP I get (? characters are IP addresses I obfuscated intentionally for posting):
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.50.1 192.168.50.106 25
0.0.0.0 0.0...
Hello folks I've got a class that pulls model information (hardware info)
for a local machine code is like so:
Imports System.Management
Public Class clsWMI
Private objOS As ManagementObjectSearcher
Private objCS As ManagementObjectSearcher
Private objMgmt As ManagementObject
Private m_strComputerName As String
...
-Aspect Ratio
-Max Resolution supported by the Graphics Card
-Orientation
-Number of output Ports
I am able to get the first three for monitors that are connected but need help detecting this stuff for the Video Card.
...
I can easily identify running processes by looping through the WMI Win32_Process elements. Is there a similar way to identify "applications" as in Task Manager? I assume that this is comparable to knowing whether the process has an open window. For example, when you exit Outlook, the OUTLOOK.EXE process keeps running. Task Manager no...
Hello,
i am using C#.net for application developement.
I wanted to check & list out PCName for one particular window service running across all connected loac/Remote PC.
i tried WMI & but still having problem with credential it gives error for RPC server not available.
same time i could get service infromation using serviceControll...
I need to be able to read the values in a specific Registry Key from a list of Remote Computers.
I can do this locally with the following code
using Microsoft.Win32;
RegistryKey rkey = Registry.LocalMachine;
RegistryKey rkeySoftware=rkey.OpenSubKey("Software");
RegistryKey rkeyVendor = rkeySoftware.OpenSubKe...
I am running PowerShell 1.0 under Windows XP, attempting to connect to machines running XP, Vista, and Server 2003 with the following command:
gwmi -cl Win32_OperatingSystem -co COMPUTER -n "root\CIMV2" -cr DOMAIN\ADMIN
This returns an error. "Exception retrieving members: Access is denied.".
gwmi -cl Win32_OperatingSystem -co COMPUT...
This is my first post, so let me start by saying HELLO!
I am writing a windows service to monitor the running state of a number of other windows services on the same server. I'd like to extend the application to also print some of the memory statistics of the services, but I'm having trouble working out how to map from a particular Ser...
I have a C# .NET app. This application is tightly coupled to a piece of hardware. Think ATM, drive up kiosk kinda thing. I want a way for my application to assure it is being run on our hardware. Our initial plan was to get the serial number of the CPU, OS, HD, or other hardware with WMI, digitally sign that, and ship that signature with...
I'm using WMI Code Creator to generate code to help list the types of devices shown in Device Manager. I'm trying to detect the presence of a debugger that shows up in Device manager as its own type (e.g. Listed under my computer, the categories are Computer, Disk drives, Display adapters, Jungo..... Jungo is the one I want)
Under Jung...
Hey stackoverflow,
The only method I know how to execute IPsec changes involves calling netsh to do the changes. Is there a method using System.Management and WMI objects directly? If so, what is it? I am having a hard time finding relevant WMI information with MSDN.
Or is there some other useful method someone out there has used?
EDI...
Is there a way to find out when the system was last shutdown?
I know there's a way to find out last boot up time using the LastBootUpTime property in Win32_OperatingSystem namespace using WMI.
Is there anything similar to find out last shutdown time?
Thanks.
...
Is there an OLEDB provider for WMI/WBEM?
In other words, could someone access WMI through:
ADO in shell vbscript
ADO in ASP script
ADO in Win32 native process
SQL Server linked server
SQL Server OPENROWSET()
Is there an OLEDB provider for WMI/WBEM?
Is it possible to access WMI through ADO?
i hear rumors that an ODBC driver exist...
I would like to know how to read, via vbscript, WMI, Powershell etc -the new Windows 7 Action center messages that the user normally gets informed of.
I want to read all those messages on each machine and store then in a central database, then disable the messages from displaying to the user on the local machines.
My questions are - 1....
I am working on a project in which I need to be able to detect when a CD or a USB drive is inserted or removed. I found some source code that was supposed to do this very thing, however, nothing seems to happen when I insert or eject a CD. Could someone please verify that the source is correct, and give me any pointers as to what I may h...
I tried to get information about available networks using WMI. Unfortunately I always get an empty list. I tried it both via VBScript (using http://www.scriptinternals.com/new/us/support/Internal/WMI%5FMSNdis%5F80211%5FBSSIList.htm) and with Jacob package for Java.
It seems that winmgmts://localhost/root/WMI / MSNdis_80211_BSSIList and ...
Hi,
I'm using MgmtClassGen.exe from the .Net Framework SDK to generate some WMI wrapper classes for BizTalk artifacts like hosts, host instances, etc.
I'm using HostSetting.GetInstances() to get the local hosts (local BizTalk Server). This works fine. I'm now looking for a way to do the same for hosts on another BizTalk machine with a ...
Hi all,
I'm currently working with mfc to make user application that shows connection status. I use WMI to get all of the queries that i need like status, network name, speed, signal strength except duration of connection.
I tried to google how to get the duration of connection using wmi but i only find TimeOfLastReset query in Win32_...
I'm working on a self-hosted WCF service for which encrypted communications is an option. Everything works fine when a certificate is already bound to the port as described here.
However, I want to avoid asking the user to run a command line tool. Is there a way the binding can be done programmatically? Perhaps using WMI?
...