Windows Management Instrumentation

learn more… | top users | synonyms

1
vote
1answer
4k views

SQL Server 2005 Reporting Services - Configuration Manager & Management Studio Problems

When I open Reporting Services Configuration Manager on my server, an error message appears that says: Reporting Services Configuration Manager An unknown error has occurred in the WMI Provider. ...
0
votes
1answer
806 views

How to programmatically query the default user's proxy auto-config URL setting?

Greetings. I have a requirement to retrieve the default user's Internet Explore Proxy Auto Config URL setting from Windows Server 2008. For the current user, the key is found at ...
4
votes
2answers
652 views

What is the WMI class to manage BitLockerToGo

I am working on a script that will be used to audit some machines. I can check whether or not volumes are encrypted using the Win32_EncryptableVolume class in root\cimv2\Security\EncryptableVolume. ...
3
votes
2answers
9k views

How to uninstall software using batch file

I want to uninstall a software by calling a bat file. It must be automatically, without entering any parameters during the uninstallation. How to make the bat file which would be able to uninstall ...
3
votes
2answers
11k views

Why is my System event log full of WMI Performance Adapter messages?

The System event log continually shows these messages: The WMI Performance Adapter service entered the running state. and then The WMI Performance Adapter service entered the stopped ...
1
vote
2answers
733 views

Dell SAS 6/iR WMI classes

FIrst off Im not very familiar with WMI at all, but what Im trying to accomplish is pulling the raid status out off some wmi class for a SAS 6/iR. I figured as much as installing the Megaraid Storage ...
0
votes
1answer
889 views

How does one create a website application in IIS6 from a script?

I'm sorry about how simple the question is but I've searched all over the Internet and I found MSDN articles about making application pools (http://msdn.microsoft.com/en-us/library/ms525309.aspx) and ...
1
vote
1answer
2k views

Renaming a computer via WMI in Windows 7

I'm having trouble renaming a local computer via WMI. I'm following the MSDN documentation (and not following it -- in an attempt to get SOME sort of result), but I can't seem to get the ...
2
votes
1answer
2k views

Determine Users Accessing a Shared Folder Using PowerShell

I need to determine the users/sessions accessing a shared folder on a Windows XP (SP2) machine using a PowerShell script (v 1.0). This is the information displayed using Computer Management | System ...
2
votes
1answer
7k views

Scripting inventory of machine name, current username, Operating System using WMIC or powershell

I have a text file of every machine in our Windows Active Directory domain, and I would like to determine the currently logged in user (if any) and operating system of each machine using WMIC: WMIC ...
0
votes
1answer
2k views

Using WMI to query entire network for LoginDateTime, UserName, MachineName, IP Address, MAC Address, Operating System?

This is somewhat related to this question: http://serverfault.com/questions/85372/batch-file-to-mass-ping-group-of-computers-on-network-by-name-check-reply-and-r Long story short...I am working on a ...
9
votes
2answers
5k views

WmiPrvSE memory leak on Windows 2008 *R2*

I've seen references on Windows 2008 to WmiPrvSE leaks, but nothing about Windows 2008 R2. We're running R2 on top of Hyper-V (2008). We are also running NSClient++ for monitoring from opsview. Over ...
3
votes
3answers
3k views

Disable a specific ethernet card via batch commands on Windows

What I would like to do is disable a NIC based on the connection name (aka: what you see in the "network connections" window, or what you would use with netsh commands). I know enabling/disabling can ...
1
vote
1answer
613 views

How is Win32_DefragAnalysis FilePercentFragmentation Calculated

SCOM 2007 R2 added a fragmentation analsysis health check that is producing warnings on many of my servers. To try to understand how SCOM is determines the fragmentation level, I created the following ...
0
votes
1answer
1k views

Query “SELECT * from Win32_Process” hangs indefinitely

As a part of a larger C# code base, I've been running the following query regularly on the same machine (Windows XP SP2): "SELECT * from Win32_Process" It's been working as expected until today. ...
2
votes
5answers
1k views

Powershell recursive WMI query

I'd like to start at the top of a WMI namespace, recurse through all the objects, then recurse through each object's property list, filtering out and returning to console only those properties that ...
0
votes
2answers
5k views

Getting error “WMI: Not Found” on a Windows 2003 Server

I'm getting the following error whenever I try to view the dependencies for any service on our Windows 2003 Enterprise Server: WMI: Not Found So three questions pop into my head at this point: ...
6
votes
1answer
3k views

Common WQL Monitoring Queries

What WQL queries would you use for monitoring typical Windows bottlenecks? Which would you use to obtain data similar to 'top' or 'netstat'? What interval would you poll at? Here are a few that I ...
4
votes
4answers
2k views

Does WMI cause CPU Creep?

I have a few servers, running Server 2003 Std/Ent and SQL 2000/2005, that I've noticed will start showing higher CPU usages over time. Stopping the WMI service and restarting it will always bring it ...
4
votes
6answers
11k views

How to get the IP Address for your Local Area Connection on Windows Server?

I want to create a batch or vbs file that will put together a url and executed. Part of that url needs to be the actual ip address of the machine. How I am able to get that IP address in a variable ...
2
votes
2answers
807 views

How to work out the WMI Class name from its perfmon counter name

So I have been provided with a bunch of performance counters that are housed within a particular performance object (i.e. these are not one of the default perf counters that come with Windows) and ...
1
vote
3answers
1k views

WMI Remote connection objsWbemLocator.ConnectServer

I have an issue when connecting to remote machines using the following: Set objWMIService = objSWbemLocator.ConnectServer _ (sIP, "root\CIMV2", strUser, strPassword, "MS_409", "ntlmdomain:" + ...
3
votes
2answers
336 views

Can I still use WMI to manage SQL Server 2005 and 2008?

I've seen some articles on how to use WMI to manage SQL2000 servers (after installing SQLWMI80.msi manually) but I've not seen anything about this for SQL2005 and SQL2008. Has this been depreciated? ...
0
votes
3answers
4k views

Windows environment variables: “Default User” vs. “System”

I'm exploring environment variables via the WMI class Win32_Environment. According to the documentation, a variable that's not of a specific user can be either a "System" variable or a "Default User" ...
0
votes
2answers
3k views

Querying a Windows box to see if the currently logged on user is idle - ideally using WMI

I want to be able to query whether the currently logged in user is idle at their PC - i.e. their PC believes they are 'inactive'... The problem is there are so many ways this could be done. Is there a ...
2
votes
4answers
7k views

Which windows rights for powershell's Get-WmiObject on remote PC?

When I run a simple powershell command on a remote PC such as Get-WmiObject Win32_Process -computer Pc1 Some Pcs reply "Access denied", while other reply fine, but I can't get the difference. Which ...
0
votes
3answers
3k views

How is average disk queue length retrieved via WMI computed

I'm using WMI to query the current and average disk queue length of remote machines to be able to monitor the load on the hard drive. The query is as follows: select CurrentDiskQueueLength, ...
2
votes
5answers
1k views

Server & Workstation Power Consumption - obtaining programmatically/via script

I'm looking for a generic way to query a network of Windows PCs (XP/Vista/7/Server 2k3) for their current power consumption - ideally in Watts! I'm sure this kind of thing is built into WMI, but it ...
0
votes
2answers
5k views

Reporting Services WMI Provider error 8000000A

I recently installed SQL Server Express 2005 with all available options. When I run Start->Programs->SQL Server 2005->Reporting Services Configuration I get an error immediatley: "An unknown error ...
0
votes
3answers
4k views

How to use Powershell 2 Get-WmiObject to find an instance of SQL Server Reporting Services (SQL2008) on Windows Server 2008 R2

I'm trying to use the powershell 2 "Get-WmiObject" command to find the reporting service instance using this command get-wmiobject -class "MSReportServer_Instance" -namespace ...
12
votes
4answers
10k views

Which permissions/rights does a user need to have WMI access on remote machines?

I'm writing a monitoring service that uses WMI to get information from remote machines. Having local admin rights on all these machines is not possible for political reasons. Is this possible? What ...
1
vote
8answers
2k views

Need a resource that lists WMI perfmon classes

Does anyone have links to resources that list perfmon classes that are called by the WMI Query Language? I have some monitoring software that can pull data via WMI but I have to enter a query in WMI ...
6
votes
7answers
8k views

What is the best (free) tool to wrap an .exe into a MSI?

I'm looking at deploying some software via GPSI and the current version of the software is distributed as a .exe so I need to convert it to an MSI file. furthermore, why does MS still distribute some ...
0
votes
3answers
364 views

WMI - Win 2k8 - How do I tell what it's dependancies are?

I've got a server that'll boot and log let you term serv into it at 6 min but acutally become useful at 18 min from hitting reboot. After rooting around in the logs I strongly think it's a service ...
5
votes
6answers
4k views

Useful WMI admin scripts

In a comment to my response to this question , cop1152 said he loved WMI scripts. Well, so do I! What are your favourite, best, most useful scripts you'd like to share with the community? thanks.
2
votes
2answers
722 views

Managing multiple systems using JMX and WMI

Our project needs to manage multiple systems across multiple operating systems and languages (Windows, Linux, Java, C++, C#, etc). We're looking at WMI for parts of the system, but for some of the ...