wmi

Want to script Windows WMI (wmiprvse.exe) to release handle on file

I'm working with a VB Script file written by someone else that uses Windows Management Instrumentation (WMI) calls to check on the status of several Windows Services. This script runs every few minutes on set schedule. I need to upgrade/replace the .exe for those services. I stop the VB Script, stop the services, and uninstall the ser...

ActiveX control within Web Page to create User Account

I'm wondering if there is any way to create a User Account on a Windows XP machine that can be done through scripting from an ActiveX control on a webpage. Specifically, I'd like to know if there's any way to deploy an ActiveX control with computers (that I preconfigure and ship) that will allow use of my webpage from that computer to d...

WMI invalid Class error (trying to uninstall a software on remote pc)

All, I am trying to uninstall a software remotely, it is working fine in the test machines, but i got problem in production servers. test machines i have used windows xp, windows 2003 server, production machine : windows server 2003. what could be the cause of this error, any help would be more appreciated. if you have any other...

How can I find the amount of video Ram installed through a WMI call?

Does anyone know how to get the Video Ram of a PC from a WMI call? I've seen calls to the Win32_VideoController management object's AdapterRAM property, but that only gives the system memory, and is not representative of the video RAM at all. ...

Database size via WMI in .NET

Is there a way to find out the size of a SQL Server database using WMI from .NET? I've had a look at the WMI documentation but I'm not clear how I'd be able to locate that information. We're using SQL Server 2008. -dave ...

Can I create a child process using WMI VB scripting?

Using WMI VB scripting, I would like to create/attach multiple child processes to a parent process, such as the explorer process. Any ideas how this can be done? Below is my code that fails. Thanks! Chris Option Explicit dim wmi, rootProcessName, rootProcess, objStartup, objConfig, objProcess, strComputer, dropbox, itunes, skype strC...

How can I programatically determine if an IIS site is receiving requests?

The title pretty much says it all. Some caveats are: I need to be able to do it in C# It needs to be able to be done from a remote server (ie, running on one server, checking IIS on another) Needs to be close to real-time (within 1 second) Can use WMI calls I've tried watching the log file, but it turns out that isn't nearly close en...

WMI Process Watching uses too much CPU! Any better method?

I need to watch when certain processes are started or stopped on a Windows machine. I'm currently tapped into the WMI system and querying it every 5 seconds, but this causes a CPU spike every 5 seconds because WMI is WMI. Is there a better way of doing this? I could just make a list of running processes and attach an Exited event to them...

Is there any free/opensource vbscript to exe converter?

I need to convert a wmi vbscript to exe (to automate configuration in several computers). Any free vbscript to exe utility or any other suggestions? ...

WMI & Computer power settings - Date/Time last out of standby

Hello gang, I'm trying to find out the last time a computer came out of standby/hibernate. I know I could get this by watching Win32_PowerManagementEvent, but that doesn't work in this instance as I need something I can poll - any ideas? It doesn't have to be WMI, I'm just assuming that's the place it would be. Thanks! ...

WMI/PowerShell Bug: why is CreateSite creating *two* sites all of the sudden?

I have a simple PowerShell script that uses WMI to create a web site on a Vista box. Yes, I know PowerShell has an IIS provider for working with IIS 7, but this script must also support IIS 6.0, so that rules that out. Anyway, the script was working just fine, but all of the sudden (and I mean that literally, I made zero code changes t...

Set the working folder for a remote process using WMI

I'm using this article to start a process on a remote machine using WMI. How can I control the working directory that process will start in? (No need to redirect me to psexec, I'm getting an error from it, currently trying the WMI approach). ...

Connecting to WMI: 0x800706ba errors on some machines (but not all)

When I try to connect to WMI from Powershell, ConfigMgr, or WMI explorer, I can talk to the majority of my computers, but some (maybe 30%?) return an 0x800706ba (RPC server is unavailable). If I turn the firewall off on the remote machine, the queries start working. I have tried a bunch of different configurations of firewall settings,...

Adding an extension mapping to IIS

Hi, if you browse the internet it's relatively easy to find code that modifies existing script maps (to switch between .NET versions, for example). However, the relatively obvious code to actually add or remove a script map doesn't seem to work. Has anyone succeeded in writing something that can add or delete a scriptmap in IIS 6? ...

How can I read a "drive label" or "volume name" in .NET?

Can you show sample code for reading a drive label or volume name in .NET? I get the sense this requires WMI, but I am loathe to "drop-down" into WMI because it is like dropping down into a string-based SQL query in the sense that certain objects may not exist on certain versions of OSes or the user may not have the right to query certai...

MSInfo32 Permissions

What permissions are necessary to access a XP/2003 Server machines information remotely through MSInfo32? Having the same admin account on the computer seems to work, but doing a runas through another account doesn't, nor does giving global access to WMI. What needs to be there to successful retrieve the information, since MSInfo doesn'...

Can I use WMI to find the network usage by each process?

I'd like to use WMI on some windows systems to poll the network usage of each process. From what I can tell, there are many IO instances in the Win32_PerfRawData_PerfProc_Process but they are for the combined IO of network,disk,and device. Is there a way to break that up so I can get network and disk IO separate? ...

Identify process using a file

I have been trying to figure out how to programmatically identify the process that has a lock on a particular file. I've searched through the Win32 API and WMI, but so far I can't find anything. I know it's possible - Sysinternals is able to list every resource accessed/locked by every process on the system. Can anyone drop me a hint?...

Debugging (Tracing) WMI queries?

I've got a third-party program that's making WMI queries to local WMI providers (so it's not using DCOM, so packet-sniffers are out). I'd like to find out what queries these are. It's also on XP, so the new Vista WMI tracing infrastructure is out, as well, unfortunately. Any pointers? ...

How can I get Volume GUIDs using WMI?

Is there any way to retrieve the following type of path: \\?\Volume{GUID}\ for USB drives Using WMI? ...