Questions tagged [wmi]

Windows Management Instrumentation

Windows Management Instrumentation (WMI) is the infrastructure for management data and operations on Windows-based operating systems. You can write WMI scripts or applications to automate administrative tasks on remote computers but WMI also supplies management data to other parts of the operating system and products, for example System Center Operations Manager, formerly Microsoft Operations Manager (MOM), or Windows Remote Management (WinRM).

396 questions
1
vote
1 answer

System health monitoring of unmanaged server using WMI / SNMP

I need to monitor the health of a couple unmanaged servers (specifically Dell SC1425), preferably using WMI or SNMP. They are running Windows Server 2003 SP1. Ideally I am looking for a single diagnostic signal that I can monitor. I understand that…
zelanix
  • 111
  • 3
1
vote
1 answer

Exception Enumerating SQL Server Instances with SMO WMI ManagedComputer

I'm trying to use the SMO WMI API/objects in PowerShell 2.0 on Windows 7 with SQL Server 2008 R2 installed to get a list of SQL Server instances on the local computer using the Managed Comuter object. However, I'm getting exceptions after I…
splattered bits
  • 898
  • 2
  • 11
  • 23
1
vote
1 answer

Undocumented value in DfsrIdRecordInfo class

According to MSDN (http://msdn.microsoft.com/en-us/library/windows/desktop/bb540013(v=vs.85).aspx) these are the only possible values of the "flags" attribute of the DfsrIdRecordInfo wmi class: Data type: uint8 Access type: Read-only A combination…
red888
  • 4,069
  • 16
  • 58
  • 104
1
vote
3 answers

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:" + sDomain, 128) the problem is that some machines are not…
Sam
1
vote
2 answers

Get detailed network adapter information using PowerShell

Is there an alternative to Get-NetAdapterRss that can be used on Windows Server 08/03/etc.? I'm looking to query NIC information from servers with a powershell script, but cannot seem to find how to obtain RSS status/information. Is there a way to…
EGr
  • 575
  • 3
  • 12
  • 29
1
vote
1 answer

WMI Access Denied using Windows 2008 connecting to Windows 2003

I'm trying to connect from a Windows 2008 server to Windows 2003 using WMI, however, each time I get access denied. There is no firewall between the servers, no hardware or software. The account is a local administrator account, working using RDP -…
Anders
  • 273
  • 1
  • 4
  • 12
1
vote
1 answer

Cannot WMI Query root\MSCluster namespace as Local Admin

I'm trying to use WMI Explorer to query the root\MSCluster namespace on various hosts to obtain cluster resource group and resource object data. I can access the namespace with no issue on Win2K3 cluster nodes but am getting an access denied error…
MZDBA
  • 133
  • 1
  • 6
1
vote
1 answer

excecute batch command over MSI Package

I have a huge network of PCs that are all in a same domain (active directory). I want to enable WMI service and relative port, then set the domain's administrator credentials to WMI credentials over my entire network in the group policy. For the…
1
vote
1 answer

How can I manually remove a dead OCS 2007 R2 Monitoring server?

At the moment, I'm trying to get what is effectively a cut down version of our production OCS 2007 R2 environment working in a segregated lab. For a variety of different reasons, this initially consisted of a verbatim copy of our OCS 2007 R2 Active…
GodEater
  • 540
  • 1
  • 6
  • 12
1
vote
1 answer

Group policy results failing with "Invalid class" error

When trying to run the Group Policy Results Wizard against a specific workstation, I'm getting the following error: The wizard was unable to generate the computer or user's data due to insufficient permissions. Details: Invalid class I'm…
bshacklett
  • 1,378
  • 4
  • 19
  • 37
1
vote
2 answers

WMI script to list of memberships of current computer?

I have a AD hosted on 2003R2 and 2008R2, I would like to check the membership for the domain computer (e.g. compA) when an user logs on using that computer (e.g. compA) and perform certain operations inside a script. I think WMI could probably be…
William
  • 163
  • 1
  • 9
1
vote
3 answers

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" variable. My question is, what's the difference,…
JCCyC
  • 670
  • 2
  • 13
  • 24
1
vote
2 answers

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 universal: "THIS COMPUTER IS IDLE/INACTIVE" -…
Mike McClelland
  • 810
  • 3
  • 10
  • 19
1
vote
1 answer

Using Win32_FileSpecification WMI instances

I am trying to get a checksum of a remote file using Win32_FileSpecification class via WMI, but am running into a few problems. It uses CheckID as the key, which looks to be similar to the path with '\'s changed to '.'s and a GUID at the end. How…
Brian
  • 103
  • 1
  • 6
1
vote
0 answers

wmic shows network drives as used that have been unmapped

I have a script running on Windows 7 Professional SP1 x64 that maps the first available network drive to a network resource, uses it, and then deletes the mapping. Unfortunately, after deleting the mapping, the script still does not show the drive…
PaulH
  • 181
  • 3
  • 7