Get-WmiObject is a powershell cmdlet that allows WML queries to be run against WMI objects on the local or remote computers.
Questions tagged [get-wmiobject]
190 questions
0
votes
2 answers
Get Computer Manufacture Date by evaluate CPU Dates from a csv file using Powershell WMI
I am trying to output computer manufacture dates by way of looking up a csv file with a list of processor dates and returning the Dates if processor date of computer matches what is populated in the csv list. I am trying to achieve this by using the…

john zuh
- 59
- 1
- 11
0
votes
2 answers
How to configure multiple queries in wmi_exporter?
I downloaded the "wmi_exporter-0.7.0-386.exe" from the link wmi exporter and ran the '.exe' file using command prompt.
Also i have followed the guidance link prometheus wmi guidance to run the command in the command prompt ,it executed as expected…

sivanesan1
- 779
- 4
- 20
- 44
0
votes
0 answers
Get-WmiObject Win32_networkadapterconfiguration
I'm trying to use WMI to retrieve network adapter information on remote servers.
I've ran a few Get-WmiObject commands with various degrees of success.
This line works fine:
Invoke-Command $serverName -ScriptBlock {Get-WmiObject
…

b.Bish
- 55
- 2
- 7
0
votes
1 answer
How to properly call a variable for Get-WmiObject using a list of computers
I'm trying to determine how to properly call a variable for Get-WmiObject using a list of computers.
No matter what I do I cannot get this code to work.
I have spent a few hours reviewing code to compile the code I have and feel like I'm 90% there…

Reckless
- 3
- 2
0
votes
1 answer
Separate the Monitor Display Information output
Here is the code which displays information about the monitor connected to my computer which works fine.
Get-WmiObject -Namespace root\wmi -Class WmiMonitorBasicDisplayParams |
select @{ N="Computer"; E={$_.__SERVER} }, InstanceName,
@{…

Anit
- 3
- 3
0
votes
0 answers
Get-WMIObject returning multiple responses in a script, only one when run alone
I'm trying to script powershell to reach out to all AD Computers and pull a list of shares. I'm seeing some strange behavior with Get-WMIObject.
The script:
Import-Module ActiveDirectory
$Computers = Get-ADComputer -Filter * -SearchBase "Some OU"…

Austin_Manuel
- 11
- 2
0
votes
1 answer
PowerShell WMI/WQL to get information from SCCM - optimisation
This is a case where what I have works fine but I can't help but feel there must be a faster way to do this. I'm doubting my structure here. Do you see a faster way this could be done? The foreach takes a while since it has to query many times. The…

Rakha
- 1,874
- 3
- 26
- 60
0
votes
1 answer
Filtering Get-WmiObject Class Property Output to include only value
I've been utilizing Powershell to query items from a host using the "Get-WmiObject" cmdlet and the associated classes as part of a script.
In order to find the Computer Manufacturer I use the following Get-WMIObject command to output the returned…

thal0k
- 35
- 3
- 10
0
votes
3 answers
Using WMI from PowerShell or C# - how can I get remote host time, including milliseconds?
I need to get a remote host date & time including milliseconds using WMI.
The following isn't good enough:
Get-WmiObject Win32_UTCTime -ComputerName MY_REMOTE_HOST
As milliseconds are NOT implemented in the Win32_CurrentTime class which is derived…

ktopaz
- 77
- 8
0
votes
1 answer
Get the SQL Versions of all servers with get-wmiobject
I would like to get all the installed version values of SQL on over 200 different Servers.
The plan is, to have all the Server Names in the ServerListSQLVersions.txt
and to get all the SQL Versions into the CSV.
$Username = ''
$Password = ''
$pass =…
0
votes
1 answer
Share found, but no ShareSecurity
I found a list of Windows shares using this cmdlet:
gwmi -Class win32_share -ComputerName blah
However, when I use the below cmdlet, it does not show the security setting for ALL shares:
gwmi -Class Win32_LogicalShareSecuritySetting -ComputerName…

Johnny Wu
- 1,297
- 15
- 31
0
votes
1 answer
get-wmiobject script not working
I am trying to write a script to pull software list down from multiple computers in one script, however most is working but one field is not pulling through anything
I have got this script below...
GET-WMIOBJECT -CLASS WIN32_PRODUCT -COMPUTER…

Dan Goodwin
- 35
- 7
0
votes
1 answer
Powershell Group Names Returning With No Spaces
I am using get-WmiObject -class Win32_Group to get a list of groups to interrogate. I am having the issue of no naming convention. There are group names like Admin Users , AdminUsers, Admin_Users, Admin WWW Users, Admin Users_, etc.
My issue is…

gregnnylf94
- 370
- 3
- 16
0
votes
0 answers
'Provider load failure' during installation process
I execute two Powershell scripts during a installation process from a desktop application under Windows 10 IoT Enterprise.
%WINDIR%\System32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass -File…

Niklas
- 27
- 7
0
votes
1 answer
Disable 'Bidirectional communication' for a printer?
How do you disable 'Bidirectional communication' using powershell?
I can see EnableBIDI when running:
get-WmiObject -class Win32_printer | fl *
But when I try this, it says the property was not found?
Set-PrinterProperty -PrinterName "Some Printer"…

Tsukasa
- 6,342
- 16
- 64
- 96