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
0 answers

PHP7 how to get (near) real-time data from a variety of datasources?

I am making a (PHP7 on Win2012r2 with Apache 2.4/JS) website for assisting a helpdesk. Info being searched is mostly information about computers, users and Active Directory. Some other resources as MSSQL and some legacy applications that run from…
Freeze_H
  • 11
  • 1
1
vote
0 answers

BitsTransfer (BITS) service and events / WMI

Older versions of MS Windows had BITS Service exposed on WMI in "root\Microsoft\BITS" namespace. However since MS Windows Server 2012 this namespace is gone. Is there any "new" way to control BITS using WMI ? I was not able to google or find any…
TimB
  • 183
  • 2
  • 10
1
vote
1 answer

Can I limit WMI to a specific network interface

I have a Windows Server 2012 R2 virtual machine with two network interfaces. I would like to be able to query WMI on one interface and block all WMI request on the other. So far, no matter what I've tried, Windows firewall will either block both…
R. McGee
  • 111
  • 1
1
vote
1 answer

How to parse WMIC output in a batch file and compare to an array?

I’m writing a batch script to pull SCCM site codes from SCCM clients. I’d like to pull the clients site code and compare that to an array of site codes. If there is a match then I’ll uninstall the client. I have the uninstall portion. This has to be…
Javagenki
  • 13
  • 4
1
vote
1 answer

WMI "Access Denied" to Read Only Domain Controller

From a management machine using wbemtest, we are able to successfully connect to a remote Read-Only Domain Controller that is running Windows Server 2012 R2 Datacenter with a user who is a member of the Domain Admins security group. However, when we…
1
vote
1 answer

WMI query ran in a Powershell console yields less results in 32 bits mode than 64 bits mode

This query gwmi -Class Win32_PerfFormattedData_NETFramework_NETCLRMemory gives fewer results if I run it in a 32 bits PowerShell console than in a 64 bits one. It looks like background processes, like services, are the ones only showing up in 64…
plmaheu
  • 113
  • 3
1
vote
0 answers

wmic query fails with "NTSTATUS: NT_STATUS_BUFFER_TOO_SMALL - Buffer too small" error

I have a class that creates an object in WMI and I'd like to query it from a linux machine running cacti using wmic. If i run the query I get an error, see below: /bin/wmic --namespace='ROOT\CIMV2\mynamespace' --authentication-file=authfile…
1
vote
0 answers

Get-WmiCounter Win32_PerfFormattedData_NETFramework_NETCLRMemory Incomplete in non admin context

So I have created a script to gather counters using Get-CimInstance (which supercedes Get-WMIObject) and run it as a services via srvany.exe. I get an issue where for the .Net CLR classes, some processes are missing not gathered, especially one that…
Thomas B in BDX
  • 147
  • 1
  • 1
  • 10
1
vote
2 answers

WMI Remote "Access Denied"

I can no longer remote access WMI on anything in my environment (10/8.1/XP/7 workstations). Here some specifics: 1) I am a Domain Admin and "MRT" is my user and password "mmmmn". 2) Since this happened I've been researching articles and have looked…
M. Rostami
  • 127
  • 1
  • 2
  • 13
1
vote
2 answers

monitor windows server - running behind firewall using WMI

I'm havingg 100 windows machines which is running behind the firewall. But my monitoring server is running outside the network [ public]. For SNMP , I can put one proxy server inside the internal network and enable only simple and single NAT rule in…
1
vote
3 answers

Get installed programs via cmd or powershell

I am trying to get all installed apps in the computers of my domain but i haven't found a way to get the information in an accurate way first i was trying to achieve this through the registry key: …
kimo pryvt
  • 421
  • 4
  • 11
  • 22
1
vote
1 answer

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 Powershell script that reproduces the same…
Chad Miller
  • 1,091
  • 8
  • 11
1
vote
1 answer

Is there a supported Windows CIM/WMI provider for Dell PERC Generation 11 or later?

I have Dell OpenManage Server Administrator (version 7.4) for Windows installed on a 12th generation server with a PERC H710P. That machine has a root\cimv2\dell namespace which does not seem to include any mention of disks or disk controllers…
alx9r
  • 1,643
  • 3
  • 16
  • 37
1
vote
1 answer

WMI filter is ignored by certain clients in group policies

The applied WMI filter to a group policy is ignored by certain clients. It works fine on other clients, returns the correct value, but on some clients it is just not applied and does not appear in group policy results. Group Policy: Computer…
marsh-wiggle
  • 2,075
  • 4
  • 26
  • 44
1
vote
2 answers

WMI query to check for IP default gateway for OSD

I'm trying to add a condition for a command line, which should only be run if the condition is met. I'm doing this by using a WMI Query; Select * From Win32_NetworkAdapterConfiguration Where DefaultIPGateway="192.168.1.1" So, if the gateway for…
Saeed
  • 366
  • 3
  • 11