15
votes
Motherboard missing serial number and UUID?
Apparently the serial number got wiped somehow? It is being returned as To be filled by O.E.M.. And the UUID isn't working either; I'm just getting FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF.
[...]
This was ...
11
votes
How to get OS Version through Powershell with WMI?
Isn't a simple answer to the original question as follows:
Get-ComputerInfo | select windowsversion
WindowsVersion
--------------
1903
9
votes
Accepted
How to properly filter a wmic diskdrive list
WMIC is not a PowerShell cmdlet, and doesn't contain the properties Where-Object is looking for.
You can verify this by trying to pipe your command to Get-Member.
Using Select-String as mentioned in ...
7
votes
How to delete non-existing printers in Windows?
To delete a network printer through the command-line and without GUI,
is possible through updating the registry.
The following two registry keys contain installed printer definitions :
...
6
votes
Accepted
Motherboard missing serial number and UUID?
For motherboards that use an AMI BIOS there is a utility called AMIDEWINx64.exe that can change the serial number and UUID. I don't know if MSI uses an AMI BIOS, but if not they may have their own ...
5
votes
Accepted
Retrieve printer driver version with Powershell PrintManagement cmdlets?
This is because Get-PrinterDriver's DriverVersion is of type UInt64:
A breakout way to fix this is to use the below (source). I hope there is a more elegant way of recasting these values in the ...
5
votes
How to properly filter a wmic diskdrive list
I'm trying to filter results of a wmic list with where-object but this does not work.
I'm using:
wmic diskdrive list brief | Where-Object -Property "Caption" -Contains "Samsung"
...
3
votes
Accepted
Remote connect to a Windows via PowerShell in Linux
Look to PoSH over SSH instead.
See the step thru here:
PowerShell Remoting Over SSH
Overview
PowerShell remoting normally uses WinRM for connection negotiation and
data transport. SSH ...
3
votes
Accepted
How can I get useful information from the Search Indexer perfomance counters?
That WMI class appears to be broken in some way. Fortunately, there's a workaround, though it does involve a bit more work. You'll need to download the Windows Search 3 SDK. It's just a self-...
3
votes
Is there a way to get access to a window handle in windows using WSH, or WMI or similar?
I know it's a massive necro and pardon if it was solved already, but I've been struggling with it for some time now and here's a really simple solution I wrote:
function WinExist($winTitle, $instance ...
3
votes
How to get OS Version through Powershell with WMI?
The OS version is stored in a Registry Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId. Normally you can read those keys using WMI.
LotPings has provided the correct ...
3
votes
Accepted
How to find driver version for all devices through WMI?
This command should do better for finding the driver version, using
Win32_SystemDriver:
gwmi Win32_SystemDriver | select DisplayName,@{n="version";e={(gi $_.pathname).VersionInfo.FileVersion}}
You ...
3
votes
Motherboard missing serial number and UUID?
Have you tried using the https://en.wikipedia.org/wiki/MAC_address
Doubt you'll be able to "recover" anything considering there probably is nothing to recover
In regedit go to:
...
2
votes
Where does `powercfg` get battery health information, and why isn't it in WMI?
Here is a simple WMI "crawler" that combines all battery-classes into one object:
# get battery-identifier:
$batteryClass = Get-WmiObject -Namespace root\WMI -Class MSBatteryClass
if (!$...
2
votes
Installing JDK on Windows 10 - MsiEnumProducts error 1610 due to broken WBEM library/WMI library
I've faced the same trouble and found that my list of products (HKEY_CURRENT_USER\Software\Microsoft\Installer\Products) was broken. Always check it as well as HKEY_CLASSES_ROOT\Installer\Products. ...
2
votes
Accepted
Why am I not getting my logon session from a WMI query?
Why isn't it working?
According to this Microsoft blog post, your query cannot retrieve information about the account of a domain user when the domain is not accessible. That's because Win32_Account ...
2
votes
Windows management instrumentation for dummies?
Windows Management Instrumentation is a core Windows management technology; you can use WMI to manage both local and remote computers. WMI provides a consistent approach to carrying out day-to-day ...
2
votes
Enabling DHCP via PowerShell results in 2 WiFi connections to same network
That has been commented on here. Could you not remove the gateway by using this command after you've got the adapter to change stored in $wmi
Remove-NetRoute -InterfaceIndex $wmi.InterfaceIndex -...
2
votes
Permission to query WMI
As far as I can tell, these are the locations required for permission:
C:\Windows\System32\WBEM
HKLM\SOFTWARE\Microsoft\WBEM
appropriate permissions within WMI Management (wmimgmt.msc)
This ...
2
votes
PowerShell WMI function call with multiple variable
What exactly are you trying to achieve here?
A simple Get-WMIObject and a couple of Read-Hosts should do what you need it to:
$className = Read-Host "Enter Class Name"
$computerName = Read-Host "...
2
votes
Accepted
WMIC Query returning unexpected answer?
As pointed out in the comments, the SMBIOSBIOSVersion property is a string. Therefore, comparisons are done only on the text characters; the numeric value represented by the text isn't considered. For ...
2
votes
Accepted
Get drive index using a batch file
Since the USB drive should be seen as Mediatype Removable Media
wmic diskdrive where "MediaType='Removable Media'" get index,model
2
votes
Get drive index using a batch file
I just figured it out!
And it was simpler than expected
wmic diskdrive get index,model
Enjoy!
2
votes
Windows 8.1: Tasklist: ERROR: Not found
I fixed it with this
cd \windows\system32\wbem
net stop winmgmt
rename Repository Repository.old
net start winmgmt
tasklist # long pause as it rebuilds
Some applications may have installed things ...
2
votes
Set remote time via WMI (invoke Win32_OperatingSystem.SetDateTime())
Via WMIC: I'm noob in wmic using, but I found the command with kinda of filtering like that:
wmic os where(primary=1) call setdatetime 20070731144642.555555+480
I've checked and it really works. So, ...
2
votes
Accepted
wmic output empty when run from batchfile, but contains info when run from cmd
Just like most of programming languages, a batch file also has escape characters. % sign used in command line is an escape character in batch file and give the command a different meaning. It is ...
2
votes
Accepted
WMI query, get local info from remote server (for BgInfo)
Not a WMI solution but simpler, if you would run following script on the server while connected over RDP, you will obtain hostname of remote computer connected over RDP
@echo off
echo %CLIENTNAME%
...
2
votes
Accepted
How can I determine the bus clock programatically or via command line in Windows 10?
The bus clock can be determined using the WMI. The relevant class is Win32_Processor, and the property ExtClock provides the bus clock in MHz.
WMI objects can be accessed via command line using wmic:
...
2
votes
Accepted
Get the sector size of a drive letter without using fsutil
Here is a command that will get the logical sector size, tested on Windows 7 and
on Windows 10:
wmic partition where "DeviceID like '%Disk #0%#0%'" get BlockSize | findstr /v BlockSize
Or for the ...
2
votes
Listing Bios settings using Windows PowerShell
If you are happy to use a third party program you could try RWEverything.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
wmi × 173windows × 59
powershell × 49
windows-7 × 30
windows-10 × 23
wmic × 22
command-line × 8
vbscript × 7
windows-8 × 6
services × 6
python × 5
batch-file × 5
script × 5
networking × 4
hard-drive × 4
windows-8.1 × 4
display × 4
batch × 4
windows-registry × 4
windows-server-2012 × 4
linux × 3
windows-xp × 3
usb × 3
drivers × 3
cpu × 3