Questions tagged [wmi]
Windows Management Instrumentation
397
questions
0
votes
1
answer
34
views
WMI query or Powershell command that retrieves a sampling of historic CPU and memory usage for Hyper-V
I need to programmatically retrieve a sampling of recent CPU & memory usage on a Hyper-V system, as seen by the guest OS. By recent, I mean within the last few mins.
I can't customize the target ...
0
votes
0
answers
102
views
WMI Filter Does not Apply After Updates
I have a GPO with this WMI filter: SELECT Name From Win32_ServerFeature WHERE Name = 'Web Server (IIS)'
The GPO has a startup script meant to modify a file to instruct the load balancer that the ...
0
votes
1
answer
372
views
Could not establish WMI connection access is denied
I set up a lab to test domain joining multiple computers with a script from Microsoft.
After I ran the script it came back with could not establish a WMI connection with the computer with the ...
0
votes
1
answer
827
views
WMI issue - Access Denied - tearing my hair out!
I'm getting a weird access denied error for WMI on one of our servers that I can't understand. It appears to fail from any PC/Server that's attached to our domain, yet if I try it from my laptop that ...
0
votes
2
answers
780
views
Calling WMI on a remote machine with PacketIntegrity authentication level (with KB5004442 activated)
I'm trying to retrieve a WMI objects on a remote machine using the following powershell code :
Get-WmiObject -ComputerName mymachine -class Win32_operatingSystem -Authentication PacketIntegrity
...
0
votes
2
answers
2k
views
Is it possible to check a client Windows PC's registry to see if it is joined to an Azure AD domain?
On a Windows PC joined to a 'traditional' Active Directory domain, querying Win32_ComputerSystem or Win32_NTDomain returns the domain name.
It seems that if it's Azure anything [joined], those classes ...
0
votes
1
answer
1k
views
Windows 10 Offline files synchronization monitoring
There is a class in WMI ROOT\CIMV2 named Win32_OfflineFilesHealth with property LastSuccessfulSyncTime.
But the class is having no instances even if I have Offline files enabled and I'm using it.
What ...
0
votes
1
answer
85
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 ...
1
vote
0
answers
403
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 ...
0
votes
3
answers
3k
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 ...
1
vote
0
answers
2k
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/...
1
vote
2
answers
633
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, ...
1
vote
1
answer
216
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 ...
-1
votes
1
answer
1k
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 ...
0
votes
0
answers
1k
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 ...
2
votes
0
answers
92
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 ...
0
votes
1
answer
723
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 ...
1
vote
1
answer
2k
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 ...
0
votes
1
answer
476
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 ...
6
votes
0
answers
2k
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 -...
0
votes
1
answer
1k
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 ...
1
vote
2
answers
2k
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 = ...
1
vote
2
answers
517
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....
1
vote
1
answer
6k
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. ...
0
votes
0
answers
352
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 ...
0
votes
0
answers
51
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 ...
0
votes
0
answers
390
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 ...
0
votes
0
answers
154
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 ...
1
vote
1
answer
1k
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).
3
votes
1
answer
793
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 ...
0
votes
1
answer
849
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 ...
3
votes
2
answers
528
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
1
answer
262
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
0
answers
25
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 ...
1
vote
1
answer
828
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
0
answers
312
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 ...
1
vote
1
answer
4k
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
1
answer
2k
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 ...
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 ...
1
vote
1
answer
3k
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 ...
1
vote
2
answers
24k
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
0
answers
4k
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
1
answer
1k
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
0
answers
1k
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 ...
1
vote
1
answer
2k
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
1
answer
128
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
2
answers
1k
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
1
answer
767
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
1
answer
681
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
1
answer
2k
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 ...