Windows Management Instrumentation

learn more… | top users | synonyms

1
vote
2answers
2k views

WMI through 2 firewalls to Windows 2008

I have a custom WMI application. It works wonderfully on a number of servers (windows 2003, 2008). However, some of our servers are behind another firewall. I have followed ...
4
votes
2answers
10k views

How to check if WMI is broken or not?

I'm looking for a way to check whether WMI is running properly on a Windows Server 2008 machine. I'd prefer to do this by running a command. Is there any?
0
votes
1answer
10k views

How to use WMIC to connect to remote machine and output netstat to a file?

I'm trying to issue the following command remotely: netstat -ano > C:\output.txt but cannot figure out how to do that with WMIC! Any idea? I've got: process call create netstat.exe working but ...
0
votes
1answer
593 views

Has anyone used WMI_OfflineFilesCache::RenameItem to rename offline files?

The reason I ask is that I have been researching how to rename items once an offline files target has been changed. It seems that so far there are two options: CSCCMD.exe - Which appears to be a ...
0
votes
1answer
4k views

WMI query between two different AD sites?

I'm having problem in querying WMI between two different AD sites that is not trusting each other What I have tried: Telnet between Windows Server 2008 using IP address and port 135 is all working ...
2
votes
3answers
797 views

Rename file in folder whenever it's created?

I need to find a way to automatically rename all files that are created within a specific directory on a Windows 2008r2 file server. This needs to be done more or less instantanously, so I can't have ...
3
votes
1answer
727 views

Accessing Acer SNID via Windows WMI?

Dell have been really helpful in making their desktop and laptop serial numbers available via WMI. Has anyone had any success in finding similar information about Acer computers, especially the SNID, ...
0
votes
1answer
3k views

How to list the top level folders of a drive using VBScript?

I'm looking for VBScript code that will list the top level folders of the D: drive and not the subfolders. I use the following WMI query so far but it gives me all folders and goes down to many ...
5
votes
3answers
1k views

How to retrieve Serial Number from Windows on new U/EFI box?

I need to retrieve the hardware serial numbers from a set of new HP mini desktops that need provisioning. This worked in the past using a WSH script to query it via WMI. Unfortunately, the newer ...
12
votes
1answer
1k views

Is anyone using an SNMP and/or WMI poller to push custom metrics to Amazon CloudWatch, and if so how?

Amazon CloudWatch has a decent console, and an alarm system which uses Amazon SNS for notifications. Originally it only gave you AWS metrics, e.g. EC2 instance CPU utilization. Recently they added ...
0
votes
1answer
160 views

How can i programmatically find out how many resources a IIS server has and the traffic on each resource .. etc

I want to write a program to find out what resources an IIS server has and how many hits are there on each resource. The resource can be anything from a html page to files like sound clips, pictures , ...
0
votes
1answer
247 views

WMI error on FDCC/USGCB domain

Our lab recent moved to a domain with FDCC/USGCB policies and we ran into a number of problems with our client / server configuration. Rather than outline everything, I point you to a link and simply ...
1
vote
1answer
8k views

Remote WMI Connection Issue on Windows Server 2008 R2

I just did a clean install of Windows Server 2008 R2 (x64). I have an application that talks to the server using Remote DCOM communication and queries some WMI objects. All is good while I use the ...
3
votes
1answer
1k views

Where can I find a guide to remotely enable WMI access to a Windows client machine

I need to enable the WMI remote access in a lot of client machines in order to connect to these machines and get some information. These machines have installed different versions of windows (Windows ...
0
votes
1answer
790 views

How to change Hyper-V VM network settings via WMI?

I am not sure where to post this question whether at programmers.stackoverflow.com or here. So please forgive this if i am at the wrong place. My question is: How to set Subnet Mask , DNS address ...
4
votes
1answer
127 views

Prevalence of WMI enabled in real Windows Server networks

Hi I would like to get opinions from systems administrators, on how common it is that WMI functionality is actually enabled in corporate networks. I am writing an enterprise network application that ...
0
votes
1answer
360 views

Enabling WMI and corresponding firewall exception via a Group Policy Object

Hey guys, I have tried enabling WMI on my local domain using a group policy object which sets the service as on at startup. In addition i added an exception for it via the windows firewall policy ...
2
votes
1answer
601 views

Converting WMI from vbscript to powershell

I'm trying to follow the guides for accessing IIS 6 using WMI but I'm having trouble working out how to translate the Get method of SWbemServices as Get-WmiObject doesn't seem to use the same path ...
2
votes
1answer
944 views

DCOM Access Issues through Windows Server 2008 Firewall

I am trying to connect remotely to a Windows Server 2008 Machine through WMI Protocol using J-Interop Library. Although I have not been able to configure the firewall properly even after following ...
0
votes
1answer
856 views

WMI missing MSMQ queue name

Running the following query in WMI fails to return 2 queues that are active on the computer. SELECT Name,messagesinqueue FROM Win32_PerfRawdata_MSMQ_MSMQQueue Anyone know what could be causing this ...
2
votes
1answer
642 views

How do I uninstall an ActiveX control via Powershell

I have to constantly switch back and forth between two installations of a web app with two different versions of an ActiveX control. Therefore I'd like to script the ability to uninstall this control. ...
1
vote
2answers
1k views

How can I update HTTP custom headers in IIS6 using Powershell?

I have the following Powershell script which uses WMI to update the HTTP custom headers on a website in IIS 6. The script seems to work fine, no errors generated, and the resultant $website object ...
1
vote
2answers
63 views

Possible to enumerate what has been web-deployed to an IIS server?

Is there some way, e.g. through WMI, that I can query a box running IIS what web applications has been deployed to it using web-deploy? Thanks in advance.
3
votes
1answer
3k views

Is there a way to set access to WMI using GroupPolicy?

From various documentation it appears that to change WMI access you need to use WMI to access the running service and modify specific parts of the tree. Its kind of annoying changing 150,000 hosts ...
1
vote
1answer
3k views

Netsh, how to open ports in windows firewall for WMI?

How can you open ports in windows firewall for WMI using netsh command ? On windows vista and newer MS OS-es you run this command netsh advfirewall firewall set rule group="windows management ...
1
vote
2answers
271 views

Listing services on remote machine locks me out of the machine

I run a powershell command to list all of the services on a remote matchine: $b = 0; get-wmiobject win32_service -computer $computerName -credential $cred | select-object Name, ...
0
votes
3answers
4k views

Server 2008 R2, Exchange 2010, WMI error event 10

The system is windows 2008 R2, with Exchange 2010 SP1 installed. I am receiving the following event log application error: event 10, WMI Event filter with query "SELECT * FROM ...
1
vote
0answers
665 views

TFS Reporting Services Configuration Error - The RPC Server is Unavailable

I'm trying to configure Team Foundation Reporting but without any success. The App Tier and the Data Tier are in separate servers. I guess it's not a port/firewall problem, because I opened port ...
0
votes
1answer
242 views

How do I install the IIS 6 WMI on Windows XP?

I want to use WMI on Windows XP to manage an IIS 6.0 server. I have installed the IIS 6.0 Manager but the WMI components still aren't available. I'm using the following line of PowerShell to test ...
0
votes
1answer
2k views

I get Get-WmiObject : Generic Failure error on an XP Machine. What needs to be done to get rid of this?

I am trying make an uninstall app which removes an application X on a regular basis. The starting point to access applications installed in a Windows machine is through retrieving them from a WMI ...
0
votes
1answer
2k views

Windows script to change from DHCP to Static IP addressing

I need a (WSH) script that clients can execute on their machines themselves and with a minimum of hassle and without me requiring any special privileges. The script should take the existing IP ...
11
votes
2answers
19k views

What is stored in %Windir%\System32\LogFiles\WMI\RtBackup?

I occasionally notice in Resource Monitor hard disk activity related to ETL files in the folder C:\Windows\System32\LogFiles\WMI\RtBackup. Which process/service creates these ETL files and what is ...
0
votes
3answers
3k views

Export a list of installed features on a Windows 2008 server

I have been asked to specify the features which are installed on a production web server so a replica test environment can be created. I could point and click my way to the solution but I am curious ...
2
votes
2answers
2k views

Timestamp of Last Definition Update for Microsoft Security Essentials via Script

Is there any way to check this via VBScript or Powershell? I have briefly looked at the SecurityCenter and SecurityCenter2 WMI classes, but neither of them look especially useful. It appears the ...
1
vote
1answer
92 views

Windows Server 2003 + WMI = Regular Bluescreens

I have serious problems with machines running Windows Server 2003 x64 Edition. I've written an application which queries periodically the system status using the WMI database. The database is ...
1
vote
2answers
776 views

Getting Win32_Service security descriptor using VBScript

I am using VbScript for retrieving the securitydescriptor of a Win32_Service. I am using the following code: SE_DACL_PRESENT = &h4 ACCESS_ALLOWED_ACE_TYPE = &h0 ACCESS_DENIED_ACE_TYPE = ...
0
votes
1answer
338 views

How to list the Exchange 2003 accounts with any delivery option

I'm looking for a way to list the accounts that have any delivery option set in Exchange 2003. I have used WMI to query the Exchange classes described at ...
0
votes
1answer
479 views

How to script GPO in Windows computers without Active Directory?

Does anyone know how to script GPO for users in a Windows computer that is not on any Active Directory network? I can't use GPMC because it doesn't work without a domain. I have been searching the ...
0
votes
1answer
1k views

WinMgmts error on Windows 2008 R2 Server

I have a VBS file that is failing on this line: Set objWMIService = GetObject("WinMgmts:{authenticationLevel=pktPrivacy} \\myserver\root\MicrosoftIISv2") with this error: Microsoft VBScript ...
2
votes
1answer
1k views

WMI query of Win32_Product creates events in the W2K8+ Application Event Log

On Windows Server 2008 and Windows Server 2008 R2 querying installed software with WMI and the Win32_Product class events are written to the Application event log. The events are purely informational ...
3
votes
3answers
2k views

Detect corrupted WMI

When WMI is corrupted it will fail in the strangest ways, certain queries (most of them) will work, some will throw exceptions, others will time out and a few will simply return no (or ...
2
votes
3answers
2k views

WMI permissions: Select CommandLine, ProcessId FROM Win32_Process returns no data for CommandLine

I am gathering performance data via WMI and would like to avoid having to use an account in the Administrators group for this purpose. The target machine is running Windows Server 2003 with the latest ...
1
vote
2answers
2k views

active directory users have auto-created private user share

Currently using server 2008 and a logon vbscript to auto mount 3 drives. I'd like to have a mapped network drive that goes to a user-private share automatically. Is this possible to rig up in a login ...
1
vote
1answer
6k views

Which ports does WMI Service in Active Directory use exactly?

I read in the technet, that the WMI Services uses random ports over 1024 because of RPC.. Now is the question does it use 1025-5000 because of the microsoft port reservation or could it use more than ...
1
vote
2answers
261 views

Best way to get thousands of IPs bound to a NIC in Windows 2008 and 2003?

I had setup a small application that uses WMI to setup a nic with multiple IPs. Does someone know of a better way of doing this once we start unsing thousands of IPs on a single nic? I amnot much of a ...
4
votes
4answers
4k views

How can I get WMI to return info on physical disks in Dell Poweredge server with RAID enabled?

I'm using WMI to gather stats on some of our servers, and I'm trying to get details of the physical disks that are installed in each server. The servers are various Dell PowerEdge models. Windows' ...
0
votes
1answer
615 views

Zenoss need to get freespace threshold and alerts on windows “mount points”

I have a WMI query that will give me all the data I need to do this but I can't figure out how to get this working in Zenoss. I know I need to set data points and a threshold, and optionaly a graph. ...
0
votes
1answer
261 views

VBScript Array Help for Select Statement

I'm using a select statement to show all services on a system currently set to Auto (automatic). The trouble is the list of service I do not want to see is growing. While still not larger than the ...
1
vote
2answers
1k views

WMI and adding Multiple IP Addresses?

Is it possible, with WMI, to bind IP addresses to a NIC? I have been able to enable a static IP, but I can't seem to find any information on adding additional IPs. this code helped and after I ...
2
votes
3answers
6k views

Change Windows Service Priority

I have a windows service that needs to run with High Priority. At the end of the day I want to use this script to modify the priority after service startup: Const HIGH = 256 strComputer = "." ...