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

Server 2012R2 wmiprvse listening on large number of UDP ports on IPv4 loopback

We are experiencing on our 2012R2 servers that the wmiprvse.exe is listening to a large number of UDP ports. Over time it just keeps adding up. If the server has been up for like a month there can be hundreds (nearly thousand) of ports…
user2782999
  • 123
  • 3
  • 7
0
votes
1 answer

WMI filter missing from GPRESULT on Win 10 clients but not Win 7 clients

I am having a problem with a new Windows 10 WMI filter I have created on a Windows SBS2011 server, I created it in the WMI section alongside my working filters: Namespace: root\CIMV2 Query: select * from Win32_OperatingSystem where Version like…
0
votes
1 answer

Remotly obtain an application's Windows Installer patches via WMI or Powershell

I'm working on a remote administration app which needs to be able to obtain a list of patches which have been applied to an application. This Support article suggests there are two ways they could be…
user3587642
  • 1
  • 1
  • 1
0
votes
1 answer

Get local path of Windows fileshare when running a PowerShell script remotely via WinRM

I have a Windows batch script that copies an EXE or batchfile to a remote fileshare and runs it on the remote server using PowerShell WinRM. The line that runs the command remotely looks like this: ECHO Invoke-Command -Authentication CredSSP…
EM0
  • 351
  • 7
  • 20
0
votes
1 answer

Hyper-V unable to attach existing vhd file to newly created virtual machine?

My goal is to programmatically create a new Virtual machine and attach an exisiting vhdx file to that machine. The only inputs to my program are the VM name and VHDX path. I'm implementing this using Hyper-V WMI Provider and Virtualization V2…
0
votes
1 answer

WMIC - "os - Alias not found"

I have a product which uses WMI to get status of the server it's running on. The application is set to use the following to get the amount of free memory available. wmic os get freePhysicalMemory On one specific server in the cluster we get the…
Eric Schnabel
  • 73
  • 1
  • 1
  • 4
0
votes
1 answer

GPO WMI filter not excluding computers

I have a GPO modifying user and computer configuration. On this GPO a WMI filter based on the hostname exclude some of the computers. select Name from Win32_ComputerSystem where (Name <> "comp1-*") select Name from Win32_ComputerSystem where (Name…
0
votes
0 answers

WMI query returns "Generic Failure" exception for certain classes

I am trying to query Win32_USBHub or Win32_DiskDrive on a remote server using PowerShell, but I am receiving the following error: [PS]> Get-WmiObject -Class "Win32_USBHub" -ComputerName MyServer -Credential $Cred | Select -First 1 Get-WmiObject :…
Charlie Joynt
  • 219
  • 1
  • 4
  • 11
0
votes
1 answer

negative WMI-Filter for security filtering in GPO

I need to create a group policy object (GPO) that will disable printer redirection for all computers except certain servers. I considered making a security group and adding all the computers except the servers that I wanted to permit printer…
user1276012
  • 1
  • 1
  • 2
0
votes
2 answers

Targeted GPO deployments from Samba (4) DC

I've seem to be stuck. I come from a mostly POSIX background, & thrown into the deep-end on this one, so learning as I go along - so not sure if there's no solution, or if it's my own Dunning-Kruger at play. Setup: (Trying to keep as much of the…
0
votes
1 answer

WMI query to find lack of drive letter for Group Policy

I'm building a group policy to apply to a subset of users within my organization. This subset of users have no Home Directory set on their Active Directory object, whereas other users have an I:\ drive assigned. I need to find a WMI query which will…
Jeff Miles
  • 2,020
  • 2
  • 19
  • 26
0
votes
1 answer

Using SCCM WMI Global Condition to detect exsistence of hardware

I am attempting to use Global Conditions to allow SCCM 2012 Application objects to trigger the installation of a video driver package. I'm running into issues when I have both an onboard (CPU or Motherboard based) video device and a PCI-E Video…
Doltknuckle
  • 1,244
  • 6
  • 25
  • 32
0
votes
1 answer

List a server's available WMI Performance data classes

How can I get a list of all WMI performance counters classes on a given server, to use in scripts for monitoring purposes. I know one can use the performance monitor, but the classes displayed don't match the name of those available via WMI…
Thomas B in BDX
  • 147
  • 1
  • 1
  • 10
0
votes
0 answers

WMI service not working properly

I'm Having an issue with WMI, which seems to also affect DFS. I've tried rebuilding the repository, but it's still giving me the same error. Here's what DFS health report showing: SRV-FS02 (2 errors) (View Server Details) Cannot access the…
Jason Staples
  • 117
  • 1
  • 1
  • 9
0
votes
1 answer

SCCM Server 2012 WMI Query For Missing Microsoft Patches On Specific Host

What is the appropriate WMI query to ask a 2012 SCCM server for a list of missing Microsoft patches on a specific host that the SCCM server manages. For example, say I want to check which patches are missing on a Windows 8 client that is at IP…
Chris
  • 1
  • 2