Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [wmi]

Windows Management Instrumentation

3
votes
2answers
93 views

Is Microsoft moving away from WMI?

I've using Linux for years and recently I've joined new organisation who's entire infrastructure is based on Windows Server 2012R2. Ever since then, I've been learning PowerShell and I find it is very ...
1
vote
1answer
27 views

How to change network adapter DNS servers on Windows without using netsh or WIM

I would like to modify network adapter DNS servers on Windows programmatically. I don't want to use WMI, because it fails for instance when no network cable is connected to the ethernet adapter being ...
2
votes
0answers
20 views

How to prevent the installation of third-party AVs for a domain using GPOs?

Our organization uses a particular AV that we manage, but we currently have no way to enforce users not to install any other AVs, which has started to become an issue. I know windows can typically ...
0
votes
1answer
25 views

Trigger task after DataCollection with perfmon

In performance Monitor, I'm looking for a way to compress my data collection (*.blg file) when the collection has reached the stop condition. Looking at the "Data Collector Sets" properties there ...
0
votes
0answers
30 views

Change WMI Security Descriptor programatically not working

I'm trying to change the Wmi Security Descriptor of a about 100 hundred Computers with Windows 10 Pro/DC 2012 R2. I found that the following approach can be used in my case : msdn Executing the steps ...
0
votes
1answer
121 views

WMI E_ACCESSDENIED errors when attempting to remotely rename computer via PowerShell

I am trying to run a script to rename remote computers via PowerShell. The problem I'm running into is that I'm getting the following error: Rename-Computer : Cannot establish the WMI connection to ...
0
votes
0answers
27 views

Udocumented values for Win32_PrintJob.StatusMask: bits 0x1000 and 0x2000

Problem I'm trying to implement a spooler queue cleaner for Windows Print Server (2012R2) that removes broken or frozen jobs in certain conditions and notifies users of the problem. While analyzing ...
0
votes
1answer
149 views

In Powershell, how to check drive space on remote server with non-admin account?

I work in an active directory environment with many servers. I have a user account that I would like to use to check the status of other servers, without giving this account full administrative access ...
0
votes
0answers
30 views

GPO Results Wizard / WMI / Win32 errors

When I try to run the Group Policy Results Wizard on a Windows 7 workstation on my domain I receive the following error: Then when I try to restart the WMI service I get this: If I click Properties ...
1
vote
1answer
166 views

What permissions are needed to query Win32_PerfRawData_Counters_ProcessorInformation and similar objects remotely?

The Windows Machine I'm using: I ran this on Windows Server 2012 R2 no service pack. the ip is 10.10.123.123 (changed for my privacy!) winrm listener is setup on HTTPS 5986 The user I'm using: is a ...
1
vote
1answer
381 views

Importing GPO WMI filter .mof file

I've got a couple of exported GPO WMI filters off an AD domain as .MOF files. I see that I can import them using the Group Policy Management console but would rather like to re-import them via a ...
0
votes
1answer
870 views

WMI Query for certain computer names but not others

I'm trying to write a GPO WMI query that will include computers with certain names and yet exclude some machines that fall within those parameters. This is what I have (and doesn't work): SELECT * ...
0
votes
0answers
1k views

powershell script to run bitlocker

I am trying to enable bitlocker in all domain joined user machines in my office. I have used a logon script to enable bitlocker in all machines. But this tool is enabling bitlocker in C drive alone. I ...
0
votes
0answers
132 views

WMI Query Full Disk Encryption

Microsoft provides the "Win32_EncryptableVolume" WMI class to query the encryption status of a disk, but its only meant for BitLocker. Does anything exist to query the disk encrypted status if the ...
0
votes
0answers
325 views

WMI \root\microsoft\windows\dhcp not returning any data

I use WBEMTEST.exe to test WMI on Windows Server 2012 R2. DHCP feature on this windows is installed and DHCP Server have a scope. Step 1 : Open WBEMTEST.exe and connected to "root\microsoft\windows\...
0
votes
0answers
244 views

WMI Win32_PerfFormattedData_PerfOS_Memory class doesn't exist

The Win32_PerfFormattedData_PerfOS_Memory WMI class (and many others) don't seem to exist. From a scripting perspective I asked this question when I couldn't get ...
0
votes
1answer
264 views

Determining printers with state “Needs New Driver” via WMI/VBS

Everytime a change is made to our print server, some printers from what staff (without admin rights) have added to their printer list report "Needs new driver" in Devices & Printers (pre Win 10)/...
0
votes
1answer
46 views

Grant Remote Launch and Remote Activation privilege with powershell script

I'm trying to grant full WMI remote access to a domain user, just like this one It works but I need to automate this process with powershell scripts, any ideas? I can't find anything relevant on ...
0
votes
2answers
239 views

Powershell Script output blank on second function

Im writing a big script that scans WMI info from computers in AD. I have functions for diskinfo, raminfo and videocardinfo where disk and videocard have similar output styles. Problem is that ...
0
votes
1answer
236 views

Powershell Disk Info

Im writing a powershell script which prints disk information from computers from AD OU. My function looks like this: function Get-DiskInfo { $disk = Get-WMIObject Win32_Logicaldisk -ComputerName $...
0
votes
1answer
113 views

WMI win32_product installState property

Doing a wmi query on a few systems on my network returns installState=1 for a given software. However, it doesnt appear in add remove programs or HKLM\software\microsoft\Windows\CurrentVersion\...
1
vote
1answer
421 views

Calling wmic with local user from linux box to windows (NT_STATUS_ACCESS_DENIED)

This question has been asked in various forms but none of the solutions worked for me. I am trying to run icinga from a linux box and one the plugins uses WMI queries. It's failing, so I decided to ...
0
votes
1answer
303 views

Send WMI-Command to Hyper-V virtual Machine

i am looking for a method to send a wmi command (to be specific "wmic process") to a virtual machine (hosted with Hyper-V 2016) and get its output. I am watching the windows deployment installation ...
1
vote
1answer
2k views

WMI Filter to detect Windows 10 Creators Update or higher

I have a group policy that needs to apply to Windows 10 Creators / version 1703 / Build 15063 and higher, (Specifically Cross Domain Drive mappings) Until Fall Creators came out, detecting ...
0
votes
1answer
322 views

sql server 2012 service not running

When starting my VM with windows server 2012 R2 which is my SQL-server, I get the following error: My SQL-server service won't run if I start it or if it gets started automaticly. What I have done ...
0
votes
1answer
60 views

WARNING: WMI ProgID registrations missing

I started one of my windows server 2012 R2 virtual machines today and got the following warning: WARNING: WMI ProgID registrations missing At first I only saw a vague error in the server manager: ...
1
vote
0answers
319 views

PRTG - Windows IIS Application sensor fault

I have two sensors that are giving me the same alarm. WMI: No result set (code: PE016) -- PerfCounter: No data to return. (Performance Counter error 0x800007D5) I can't for the life of me ...
1
vote
0answers
26 views

Windows 2008 R2, guest account repeatedly re-enabled through WMI [duplicate]

Here's a problem I've been banging my head against for months: Every night at a specific time (probably not significant, but it's 23:03 CET) the Guest account on my Windows 2008 R2 server gets ...
0
votes
1answer
200 views

GWMI - Find out if Domain Controllers are physical or virtual via script

I have tried to create a script for extracting but the output is not quite I desired. $Servers = Get-ADDomainController -Filter * | Select-Object Name foreach($server in $servers) { $compsystem = ...
1
vote
1answer
169 views

Switching from WMI to Security Filtering

Currently we have several GPOs linked on top of 200+ computer objects, which are getting filtered via WMI (query for operating system). There seems to be some kind of race condition, as this GPOs ...
1
vote
1answer
302 views

Powershell Get-WMIObject fails with “Invalid class” error

Trying to get VLAN Id for VMs in Hyper-V The following commands throws "invalid class" error when run from power shell: Get-WmiObject -Class Msvm_VLANEndpointSettingData -Namespace "root\...
3
votes
1answer
96 views

Programmatically/remotely remove untrusted but “bound” Windows from Active Directory

Due to some mistakes, I have a lot of machines that seem to be bound to Active Directory (AD) from their side, but not from the side of the AD. The machines thinks they are still in the AD, but the AD ...
1
vote
4answers
5k views

Why am I getting “access denied” using “wmic”?

I have two machines, A and B, and a both with a local user called Bob that can RDP into both machines. However, when I'm on machine A, that I open "cmd.exe", and then type wmic /node:"machine-b" ...
3
votes
0answers
230 views

New-NlbCluster Access denied

This is a question and answer at the same time that I want to share to the community because google search "New-NlbCluster : Access denied" did not bring any results. Problem: Starting from 15 Apr ...
0
votes
2answers
920 views

How to map logical disks to physical disks and partitions in SCCM?

I need to query System Center Configuration Manager (current branch, version 1606) for information about the disks, partitions and volumes of client computers. However, there doesn't seem to be any ...
3
votes
1answer
150 views

Win32_LogonSessions returns older sessions

I'm trying to identify logged sessions using a WMI query using PowerShell with: $logon_sess = @(gwmi win32_logonsession -ComputerName $computername) But I see that this command is also reporting ...
1
vote
1answer
417 views

WMI object available through commandlet but not through Get-WmiObject

why can I get a WMI object using Get-CMBoundaryGroup, but not directly using Get-WmiObject? I get Invalid namespace "root\sms\site_CAS" when using Get-WmiObject $boundaryGroup1 = Get-CMBoundaryGroup -...
0
votes
1answer
2k views

Install SCCM application to client via powershell, comand line or WMI

I am trying to create a script in powershell that request and install an available application for a user or computer in the sccm application catalog. I know that there is a way to force sccm client ...
1
vote
0answers
83 views

WMI-filter on GPO evaluates contradictory

Background information I have got several, very basic, WMI filters that I use for my GPOs. All they do is check for the running operating system version and the value of an environment variable. ...
0
votes
1answer
672 views

View disk activity (IO/s, MB/s) of a Windows server remotely

Our company does a lot of very network- and disk-intensive processing. We would benefit greatly from being able to glance at which of the five drives on the server are currently being "hit" or have ...
0
votes
1answer
74 views

SMS_ReplicationLinkSummary Server WMI Class - Status values

I'm trying to monitor a SCCM environment via a non-SCOM system that primarily uses WMI as a management interface. I've found the following class: SMS_ReplicationLinkSummary Server WMI Class There ...
0
votes
1answer
192 views

Is there a way to create a share that does not require username/password when accessed all through the command line?

I know there's a way to do this from a GUI (Setting up an anonymous Windows Server 2008 network share?), but I am writing a script so I want to see if you can do it without the GUI. In other words, I ...
0
votes
0answers
103 views

Nagios server under Raspbian failed to load CPU utilisation with WMI

I am actually try to catch the average of the CPU utilisation from a Windows seven target with my Server Nagios core 4.1.1 install on Raspbian (in a Raspberry pi 3) with the pluggin Check_wmi_plus (...
0
votes
2answers
1k views

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 ...
1
vote
1answer
3k views

WMI Query to identify virtual machines under Server 2012 R2

We need to identify VMs to filter GPOs. There is an old trick to query the Win32_ComputerSystem for Manufacturer being VMware or something virtual. This works for my Server 2008 R2 VMs, but all Server ...
1
vote
0answers
120 views

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 ...
0
votes
1answer
420 views

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 * ...
1
vote
0answers
66 views

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 ...
0
votes
1answer
259 views

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 ...
0
votes
1answer
497 views

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: ...