Help with DOS command RRS feed

  • Question

  • I need help with a DOS command.  It is supposed to create an htlm file listing all the Windows OS patches.

    The command I was given is supposed to look like this but I get an error:

    wmic qfe list brief /format:htable > C:\users\fd98tb1\desktop\hotfix.html

    the response is

    Invalid format specified (or) format not applicable for this alias

    What is the correct format?

    Friday, June 19, 2015 6:28 PM


All replies

  • One Question: Why are you still working with MS-DOS?

    It is more then out-dated!

    © 2015 Thomas Roskop
    Germany //  Deutschland

    Friday, June 19, 2015 6:33 PM
  • Hello,

    I have no problem running your version.

    However, I agree with Thomas - you should switch away from dos commands :)

    I'd do it in PowerShell:

    Get-WmiObject win32_QuickFixEngineering |select PSComputerName, Description, FixComments, HotFixID, InstalledBy, InstalledOn  |ConvertTo-Html |Out-File C:\users\fd98tb1\desktop\hotfix.html

    The good thing with PowerShell is that you can post in the Windows PowerShell forum.


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Friday, June 19, 2015 8:05 PM
  • Might ask over here about wmic usage.




    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Friday, June 19, 2015 10:42 PM