Questions tagged [wmi]

Windows Management Instrumentation

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Retrieve Win32_UserAccount object by its full (not "pre-Windows 2000") logon name

I'm attempting to look up the SID for a specific user account in a PowerShell script. Prior research suggests that this can be done using the Get-CimInstance command, like so: # This doesn't work for ...
user avatar
  • 167
0 votes
0 answers
9 views

Is it possible to limit WMI privileges with certain class or property?

I'm interested in gathering Win32_Battery class data from User machines. It works well if I provide root/cimv2 rights to the account which is used to send a Get-WmiObject query. But I'd like to ...
user avatar
  • 103
0 votes
1 answer
33 views

Find Windows VolumeId from FilePath

Problem I want to find the VolumeId that my file is on using the file path. The Best Solution That I Can Think Of The best way that I can think of accomplishing this is to query out via WMI/CIM all of ...
user avatar
0 votes
0 answers
25 views

access denied error when trying to connect to a remote machine via wbemtest tool

I am trying to connect to a local client system running on hyper v, the client is connected to a domain, which is also running as a virtual machine via hyper-v I tried to connect to the client machine ...
user avatar
1 vote
0 answers
126 views

New-CimSession from outside domain

How can I initiate a new CIM session to a Windows server in my domain, from a PC that is not in the domain? I know this works, because I did it recently from the same computer, but I always forget the ...
user avatar
  • 171
0 votes
2 answers
588 views

Uninstalled Program(s) still appear in WMI Object “WIN32_InstalledStoreProgram”?

Note: This is a repost from an original post on StackOverflow. I was directed here by a helpful user, and am simply reposting. I made a StackOverflow account for the first time due to this annoying ...
user avatar
1 vote
0 answers
545 views

Powershell Script setting WMI CIMV2 Permissions

I am currently trying do change up a script so that I can put it into a GPO. The Script itself works but I want to do a "if else" around it. The Script is found here: https://gist.github.com/...
user avatar
  • 36
1 vote
2 answers
138 views

Push out Commands to all Domain PCs

I'm looking for a way to push out commands to all workstations. The scenario is as follows: I often go to environments that I am not familiar with to audit the network. Part of that is a network scan, ...
user avatar
1 vote
1 answer
135 views

WMI access denied from one day to the other [closed]

I had a working WMI connection for months. From a W10 Server I check a dozen XP clients. From one day to the other on, one particular machine denies access. All the others that should be identical do ...
user avatar
-1 votes
1 answer
507 views

WMI Remote Monitoring getting The RPC Server is unavailable. Windows Server 2019

I'm having trouble connecting to a remote machine via WMI. Getting the error message The RPC Server is unavailable I've ensured that the Remote Procedure Call service is turned on. I've opened all ...
user avatar
  • 157
0 votes
0 answers
580 views

SCCM Software Center WMI query missing applications

I am using the below query to check the Software center available and installed applications. But some of the apps are missing in the query but available in Software Center. Is there any other query ...
user avatar
  • 1
2 votes
0 answers
38 views

Error exporting VM configuration

I'm attempting a config-only VM export using this script, which was originally posted nearly ten years ago. Hyper-V internals have clearly changed since then, as I'm getting an error message: Failed ...
user avatar
  • 713
0 votes
1 answer
105 views

WMI Filter in Group Policy evaluating incorrectly

I have three machines: ASAAD-0 MSN-LEED01 MSN-LEED02 In group policy I have a WMI filter called LEED which is the following: SELECT * FROM Win32_ComputerSystem WHERE (Name != "MSN-LEED01" OR Name ...
user avatar
1 vote
1 answer
1k views

Can't query certain namespaces/classes in WMI (Get-WmiObject: Not supported)

I'm trying to query classes in the root\microsoft\windows\managementtools namespace, but am getting an odd error. I have confirmed this namespace exists on my machine, because I can query it using ...
user avatar
0 votes
1 answer
311 views

WMI filter for NOT server core for all current Windows editions

I want a WMI filter for all computers except server core for a GPO deploying some GUI tools. The top result for "wmi query server core" has many issues: The answers are specific for Server 2012. The ...
user avatar
  • 444
5 votes
0 answers
934 views

Powershell Remoting not working

I have PSRemoting working on 90% of my servers. But there are a handful that I'm not sure what's going on with them. Server 2016. Most of them are Hyper-V hosts, but not all. Enable-PSRemoting -...
user avatar
0 votes
1 answer
528 views

Is it possible to restrict WMI logins to specific hosts/IP addresses?

Context: Enterprise IT environment 3000+ Virtual Machines running various editions of Windows Server (the client) Vendor specific application which uses WMI to query the Windows Servers for ...
user avatar
1 vote
2 answers
809 views

Creating a WMI filter covering two classes

I'm trying to create a WMI filter to select all workstations and RDS servers I currently am using SELECT * FROM Win32_OperatingSystem WHERE (ProductType = "1") OR (CSName = "288-RDS01") OR (CSName = ...
user avatar
1 vote
2 answers
301 views

no permission to connect to the WMI provider - after sql server installation

I am the administrator of a windows server 2016. After installing sql server, I want to use the sql server configuration manager to have a look at what ports and accounts are there, check if all is ok....
user avatar
1 vote
1 answer
4k views

PowerShell - Invoke-WmiMethod : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

I have 2 workgroup computers. I want to setup powershell-remoting between these two computers. The OS on both the computer is windows 1809. Powershell remoting is enabled in one of the computer. ...
user avatar
0 votes
0 answers
175 views

SCCM - Collecting Local Admins Inventory

I am unable to collect data on the LocalAdmins group on computers. When I check the log files, I get the error below. I am not sure what I need to do in order to get this data? Is it an issue with the ...
user avatar
0 votes
0 answers
34 views

Contrilling WMI Permissions Remotely and removing Administrators group

So, I know the question seems a little weird, but let me explain. We are in higher education, and we have public computers. So on these computers, we enable all users within our department to be ...
user avatar
  • 11
0 votes
0 answers
310 views

permissions for MSFT classes

Im trying to query MSFT classes under non-admin user Windows PowerShell Copyright (C) 2014 Microsoft Corporation. All rights reserved. PS C:\Users\john.doe> Get-WmiObject -Query "SELECT * FROM ...
user avatar
  • 532
0 votes
0 answers
121 views

Win32_NTLogEvent query rendering data with 1 hour latency with event viewer

Trying to collect the event log data with WMI query using class Win32_NTLogEvent.But this is not sync with event viewer data.The WMI query rendering data with 1 hour latency with event viewer.Hence ...
user avatar
0 votes
1 answer
754 views

WMIC on multiple remote PC's failing with: Failed to open Node-list file

wmic /node:@PC-list.txt os get csname,installdate Command above yields this error: Failed to open Node-list file (Please check the filename).
user avatar
  • 567
3 votes
1 answer
580 views

Windows SMTP: Script Outbound Security

Building a config script in PowerShell to configure web servers' SMTP service to use the AWS SES (simple email service) for outbound mail delivery. Easy to do manually, but as we enter a load-balanced ...
user avatar
  • 3,444
0 votes
1 answer
616 views

Define static DCOM port

We have a monitoring server that needs to monitor a Windows Server 2016 in a different VLAN. These VLANS are separated by a hardware firewall. Instead of opening a range of ports for the DCOM ...
user avatar
3 votes
2 answers
456 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 ...
user avatar
1 vote
1 answer
185 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 ...
user avatar
2 votes
0 answers
23 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 ...
user avatar
  • 21
1 vote
1 answer
597 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 ...
user avatar
0 votes
0 answers
225 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 ...
user avatar
  • 203
0 votes
1 answer
3k 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 115
1 vote
1 answer
2k 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 ...
user avatar
  • 141
1 vote
1 answer
2k 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 ...
user avatar
  • 40.2k
1 vote
2 answers
15k 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 * ...
user avatar
0 votes
0 answers
3k 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 ...
user avatar
0 votes
0 answers
843 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\...
user avatar
0 votes
0 answers
999 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 ...
user avatar
1 vote
1 answer
1k 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)/...
user avatar
  • 175
0 votes
1 answer
97 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 ...
user avatar
  • 717
0 votes
2 answers
869 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 ...
user avatar
0 votes
1 answer
687 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 $...
user avatar
0 votes
1 answer
476 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\...
user avatar
  • 1
1 vote
1 answer
1k 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 ...
user avatar
  • 111
0 votes
1 answer
668 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 ...
user avatar
  • 11
2 votes
1 answer
4k 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 ...
user avatar
  • 427
0 votes
1 answer
1k 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 ...
user avatar
  • 111
0 votes
1 answer
309 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: ...
user avatar
  • 111

1
2 3 4 5
8