Blank Lines In 'wmic product get name'


  1. Posts : 217
    Windows 10 Home
       #1

    Blank Lines In 'wmic product get name'


    Hi. I was thinking of cleaning out a few of my older programs and, just out of curiosity, I tried the 'wmic product get name' command to see what it produced and whether it was the same list as that in 'Apps & Features'. What I instantly found was that many of the lines were blank. I tried it on other computers and VMs and found nothing unusual. Does anyone know what these blank lines mean, and if they are somehow nefarious?

    Matt
      My Computers


  2. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #2

    Matt,

    I don't get any blank lines.

    Whilst I cannot find any source document, it has always been my understanding that WMIC gets its list from the Registry key
    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall

    WMIC is 'deprecated'.
    - Type WMIC /? to see for yourself.
    - This means whatever MS wants it to mean on any given occasion.
    - 'Deprecated' can mean that security vulnerabilities will be addressed but no other development work will take place.
    - 'Deprecated' can mean completely inhibited.

    The WMIC method has always been limited anyway. You can find additional entries in Control panel, Programs & features.

    Do the PowerShell equivalents also produce blank lines for your computer?
    Get-WmiObject win32_product | Select-Object Name, Version, PackageName, InstallDate
    Get-CimInstance win32_product | Select-Object Name, Version, PackageName, InstallDate
    Taken from How to get a list of all installed Software - SID-500
    I suspect, but do not know, that this method is as limited as WMIC.


    Denis
    Last edited by Try3; 13 Feb 2021 at 14:17.
      My Computer


  3. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #3

    Matt,

    Personally, I use NirSoft's UninstallView
    e.g.
    …\UninstallView.exe /scomma D:\SomePathOrOther\InstalledAppsList.csv

    I have checked its output line by line and seen that everything from Control panel, Programs & features is included.
    - This output has 90 lines.
    - My WMIC output only had 78 [as did the PS commands I mentioned].

    Denis
    Last edited by Try3; 13 Feb 2021 at 13:51.
      My Computer


  4. Posts : 217
    Windows 10 Home
    Thread Starter
       #4

    Cheers, Guys.

    Matt
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:13.
Find Us




Windows 10 Forums