Questions tagged [wmi]

Windows Management Instrumentation

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

Get-WmiObject -Namespace “root\Microsoft\Windows\DHCP” -Class DhcpServerv4ScopeStatistics returns empty output

All my DHCP servers(~15) are windows servers (2012R2, 2016) and I need to get the DHCP pool statistics using the following WMI class(s). Running following commands on any of the servers return empty ...
0
votes
0answers
21 views

CPU load percentage for individual processors

I am using following WMI query to get the CPU load percent data. Select * from win32_processor and below instance results are captured. Win32_processor WMI query results By above data it’s ...
0
votes
1answer
25 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 ...
0
votes
0answers
18 views

Remote WMI Traffic

I have a problem understanding remote WMI traffic. Let's say I have 2 PC's in a LAN (PC-A and PC-B). From PC-A i type in CMD: wmic /node:"PC-B" /user:"B" /password:"whatever" computersystem get "...
0
votes
0answers
21 views

Windows Management Instrumentation - How to get Server Roles and connected Services/Drives

Hello, for a work project I'm tasked with developing a python script that reads the roles from a Windows-Failover Cluster running in Windows Server 2019 Standard Eval. (If i need to provide more info,...
3
votes
0answers
176 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
1answer
46 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
1answer
79 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
2answers
148 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
1answer
668 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
0answers
63 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
0answers
27 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
0answers
79 views

Unable to Install Mobility Service - Azure Site Recovery Vmware to Azure Replication

Here's the error I'm getting: Error ID 78007 Error Message The requested operation did not complete. Provider error Provider error code: 95103 Provider error message Connectivity failure ...
0
votes
0answers
123 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
0answers
88 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 ...
0
votes
1answer
287 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
1answer
204 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
1answer
182 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 ...
0
votes
0answers
374 views

SCCM - WinPE won't boot - WMI error (80040154)

Last week we did update our windows image for OS deployment and also our WINPE image. Everything seems fine during the update, but after when we wanted to try it to see if everything was working ...
3
votes
2answers
243 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
73 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
22 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
198 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
85 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
890 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
1answer
525 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
1answer
684 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
1k 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
2answers
5k 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
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 ...
0
votes
0answers
601 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
589 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
1answer
615 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
65 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
515 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
447 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
252 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
707 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
525 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
3k 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
785 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
169 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
918 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
414 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
331 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
468 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
104 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
10k 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" ...
2
votes
0answers
308 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 ...

1
2 3 4 5
8