Windows 10: How to redirect wmic output to text file from wmic console itself?

Discus and support How to redirect wmic output to text file from wmic console itself? in AntiVirus, Firewalls and System Security to solve the problem; Here is standard wmic output with cmd or powershellThe output of wmic can be redirected using as follows from cmd or powershell:C:\tmp>wmic... Discussion in 'AntiVirus, Firewalls and System Security' started by w0If, Aug 30, 2021.

  1. w0If Win User

    How to redirect wmic output to text file from wmic console itself?


    Here is standard wmic output with cmd or powershellThe output of wmic can be redirected using as follows from cmd or powershell:C:\tmp>wmic /outputHow to redirect wmic output to text file from wmic console itself? :eek:ut.txt printer list statusC:\tmp>My question: Let say cmd and powershell is not available blocked due to security purpose, is it possible to perform similar redirection from the wmic itself not from cmd or powershell?

    :)
     
  2. DavidY Win User

    Option 5 - wmic


    Hey Shawn

    If I use Option 5, it doesn't seem to work out quite the same way as it does in your screenshot.

    If I type "wmic product get name" in step 2, then I end up back at the command prompt. See my screeenshot.

    How to redirect wmic output to text file from wmic console itself? [​IMG]


    But in your screenshot you seem to end up at "wmic:root\cli>".

    This means that if I type "product where name=”name of program” call uninstall" as step 4, I just get an error saying 'Product' is not recognised as a command, I guess because I'm back at a command prompt and not within wmic?

    I suspect that typing "wmic" on its own before step 4 would make it work out?

    Or maybe this command would work directly from a command prompt? (I've not tried this yet.)

    "wmic product where name=”name of program” call uninstall"
     
    DavidY, Aug 30, 2021
    #2
  3. Kari Win User
    Hi Gurus help neded on wmic command (Cpu data)

    Try formatting output as a list:

    cpu get /format:list

    If you want to, you can also save the output in an HTML file as a form or a table:

    /output: "Z:\Test.html" cpu list /format:htable

    /output: "Z:\Test.html" cpu list /format:hform

    Often it's enough to get shorter list / table / form using switch brief:

    /output: "Z:\Test.html" cpu list brief /format:htable

    /output: "Z:\Test.html" cpu list brief /format:hform

    Example command:


    How to redirect wmic output to text file from wmic console itself? [​IMG]


    ... will produce a quite clear and readable HTML form:


    How to redirect wmic output to text file from wmic console itself? [​IMG]
     
  4. Johnudoma Win User

    How to redirect wmic output to text file from wmic console itself?

    Wmic bios for my Dell

    Please can you help me get the Wmic Bios for my dell laptop
     
    Johnudoma, Aug 30, 2021
    #4
Thema:

How to redirect wmic output to text file from wmic console itself?

Loading...
  1. How to redirect wmic output to text file from wmic console itself? - Similar Threads - redirect wmic output

  2. unable to add WMIC

    in Windows 10 Gaming
    unable to add WMIC: I recently bought a new computer I tried to add some software I used to use that requires the use of WMIC, but was unable to do so.I tried to add it by going to System -> Optional Features, but I get an error message saying that it could not be added.Is it not possible to add...
  3. Why "wmic memphysical get maxcapacity" outputs zero?

    in Windows 10 Gaming
    Why "wmic memphysical get maxcapacity" outputs zero?: I have an old model laptop Sony Vaio SVE14132CHP It runs on windows 11 X64. It has two slots of ram and currently have 2gb in 1 slot and 4gb in the second slot. I did find some solution online saying that I can use cmd to see the information I needed using "wmic memphysical...
  4. Why "wmic memphysical get maxcapacity" outputs zero?

    in Windows 10 Software and Apps
    Why "wmic memphysical get maxcapacity" outputs zero?: I have an old model laptop Sony Vaio SVE14132CHP It runs on windows 11 X64. It has two slots of ram and currently have 2gb in 1 slot and 4gb in the second slot. I did find some solution online saying that I can use cmd to see the information I needed using "wmic memphysical...
  5. Question regarding WMIC

    in Windows 10 Gaming
    Question regarding WMIC: I'm looking to upgrade my laptop RAM ASUS X441BA, so I want to check my capacity first.I typed in on cmd:wmic memphysical get MaxCapacity, MemoryDevices I got the outputMaxCapacity MemoryDevices 4194304 2What does this mean?Do I have 4194304 kilobytes 4.1GB to fit in within 2...
  6. Question regarding WMIC

    in Windows 10 Software and Apps
    Question regarding WMIC: I'm looking to upgrade my laptop RAM ASUS X441BA, so I want to check my capacity first.I typed in on cmd:wmic memphysical get MaxCapacity, MemoryDevices I got the outputMaxCapacity MemoryDevices 4194304 2What does this mean?Do I have 4194304 kilobytes 4.1GB to fit in within 2...
  7. Question regarding WMIC

    in Windows 10 Customization
    Question regarding WMIC: I'm looking to upgrade my laptop RAM ASUS X441BA, so I want to check my capacity first.I typed in on cmd:wmic memphysical get MaxCapacity, MemoryDevices I got the outputMaxCapacity MemoryDevices 4194304 2What does this mean?Do I have 4194304 kilobytes 4.1GB to fit in within 2...
  8. Details about wmic and wmi

    in Windows 10 Gaming
    Details about wmic and wmi: Hello everyone,I have been working and researching about wmi and wmic, and I have come to the conclusion that wmic can be abused by attackers if the system gets compromised and it should not be available to the local users but to admins. I want to know if we block the access...
  9. CMD wmic parameter?

    in Windows 10 Network and Sharing
    CMD wmic parameter?: Good morning, I'm practicing again and I'm facing another problem which I can't solve despite Google. I want to use the "wmic volume get Driveletter" to read the drive letter of a drive named:"test". But I can't get it to set the parameters so that only the drive:test is...
  10. Access is denied in wmic

    in User Accounts and Family Safety
    Access is denied in wmic: A Windows server 2008 R2 with the name "delta" use Workgroup "WORKGROUP" (So is not member of a domain). On system "delta", beside account "administrator", an other account "sysadmin" is created with account type Administrator. The other Windows system has the name "gamma"....