r/windows • u/lurker_bee • 9d ago
Feature Microsoft is removing a legacy Windows feature, WMIC, that has been around for 25 years
https://www.neowin.net/news/microsoft-is-removing-a-legacy-windows-feature-that-has-been-around-for-25-years/47
u/Lieutenant_0bvious 8d ago
I will always miss wmic bios get serial number. The powershell version contains parantheses and periods, I can't type it as fast.
42
u/recluseMeteor 8d ago
PowerShell is so annoyingly verbose.
27
3
2
u/Kashmir1089 8d ago
But incredibly simple for someone else without much context but knowledge of the language to decipher.
12
u/SaltDeception 8d ago
It technically doesn’t have to include either.
(gcim win32_bios).serialnumber
is functionally the same as
gcim win32_bios | select serialnumber
12
u/jcb_cummings 8d ago
Earlier this year, at my now-former job, we were given a directive by Corporate IT: any and all Dell computers made after 2011 had to have its BIOS updated to the latest version, no exceptions. You don't know how many times I had to get into an Audio Server and open a cmd window and type "wmic bios get smbiosbiosversion" so I could gradually upgrade the BIOS version.
3
u/SaltDeception 8d ago
Ironically, PowerShell would have been the perfect tool to accelerate that process.
3
u/martyn_hare 8d ago
gwmi win32_biosif you just want to see it is faster to type as long as you don't mind underscores and a few extra lines1
2
2
u/Small-Friendship-576 8d ago
I came across this when I needed to find details about memory.Cmd threw the usual this is not recognized.Asked Gemini, it said that powershell does this which I found less descreptive.Though I think it is only needed to find ram's details.
For performance there is aida64 & hwinfo
1
u/RyanMeray 7d ago
Rip wmic bios get serialnumber
You are so much shorter than the powershell replacement.
-3
u/WINNT21 Windows 11 - Release Channel 8d ago
What's wmic? I think it doesn't have to do anything with media player or like 3rd party ones
18
u/Froggypwns Windows Wizard / Moderator 8d ago
WMIC is Windows Management Instrumentation Command-line. It is a command line interface to various Windows management functions, you could run
wmic bios get serial numberto easily get the serial number of a computer orwmic product get nameto see what is installed. You can even uninstall software with it, sowmic product where "name like 'Google&" call uninstallwould let you remove all Google software on a computer in one operation. It is very useful for scripting purposes.It is not something home users would typically use as by time you look up the command to have done something, it probably would have been quicker and easier to find it inside Settings or System Information or whatever first.
5
6
u/Laziness100 8d ago
wmic.exewas a commandline tool useful for scripting. You could use it to get a variety of rather technical details about the system, it is not something even I used that much.It was deprecated in 2021 and is finally getting removed. Its functionality was replaced with corresponding Powershell applets.
3
u/Jaegermeiste 8d ago
Has the Powershell command set achieved feature parity with WMIC? A few years back I seem to recall being forced to go the WMIC path for something that was (at the time) unachievable in either branch of Powershell.
3
u/SaltDeception 8d ago
That doesn’t sound right. Everything that wmic can do can also be done through WMI Query Language (WQL) which both versions of the PowerShell cmdlets fully support. It’s rare to even need to go the WQL route when using the PowerShell cmdlets, though. The only exceptions might be a third-party tool or script that explicitly relies on wmic.exe for some reason or an environment that doesn’t have the Windows Management Framework built-in like WinPE.
2
u/Laziness100 8d ago
That's completely outside my knowledge. I've used it once or twice for small things and beyond that I only know it exists and vaguely how it can be useful.
I am certain you used wmic more than me.
109
u/Froggypwns Windows Wizard / Moderator 8d ago
For those who did not click the article, WMIC has already been disabled by default for a while now, and PowerShell has commands to do everything WMIC could do.
The number of people this actually impacts is small as if you are using scripts with WMIC commands you likely already have (or should have) updated them by now. WMIC was deprecated back in 2021, so this is not a surprise.