How can I use `wmic` in a Windows PE script?

I'm trying to determine the computer model (e.g., "Optiplex 9010") in a batch script running in the context of Windows PE 3.1. When running Windows proper, I can do this using wmic csproduct or wmic bios but neither of these return any data when running Windows PE. (This also seems to be true of most or all other classes.)

I've already installed the winpe-wmi.cab package to support WMI. Using wmic path instead of an alias makes no difference.

How can I make my wmic commands work?


It turns out that most wmic commands, including both wmic csproduct and wmic bios, will work if you install the winpe-scripting.cab package in addition to the winpe-wmi.cab package.


  • WMI Query for list of hotfixes installed in a system?
  • Getting the source .exe file name from .lnk shortcut in batch script?
  • accessing 4GB RAM in real mode
  • Shutting down computer with nasm
  • Not able to start kafka with .\\bin\\windows\\kafka-server-start.bat .\\config\\server.pro
  • Creating certificate using makecert without pvk file
  • c# Resize parent control when a child pictureBox changes the Image
  • How to search and isolate attributes of FASTA formatted text in R
  • Windows API equivalent to “WMIC QFE Get”
  • undefined method `render' for class `ActionView::Base'
  • finding maximum depth of chapter
  • C++ how to handle tr1 and non-tr1 namespaces in portable code?
  • AWS EC2 t2.micro instance very unstable
  • Cannot convert a char value to money. The char value has incorrect syntax
  • Correctly Importing Apache Commons Math Package
  • How to merge keras sequential models with same input?
  • Returning the auto incrementing value after an insert using slick
  • Django model for a Postgres view
  • Activation Function choice for Neural network
  • How to getText() from the input field of an angularjs Application
  • Combining two different ActiveRecord collections into one
  • Angularjs pass function from Controller to Directive (or call controller function from directive) -
  • Django invalid literal for int() with base 10
  • Eloquent update method change created_at timestamp
  • The plugin 'org.apache.maven.plugins:maven-jboss-as-plugin' does not exist or no valid ver
  • Finding past revisions of files in StarTeam w/ .NET SDK / C#
  • Javascript Callbacks with Object constructor
  • Proper folder structure for lots of source files
  • embed rChart in Markdown
  • Bitwise OR returns boolean when one of operands is nil
  • sending mail using smtp is too slow
  • MATLAB: Piecewise function in curve fitting toolbox using fittype
  • Is there any way to bind data to data.frame by some index?
  • Django query for large number of relationships
  • Busy indicator not showing up in wpf window [duplicate]
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • Why is Django giving me: 'first_name' is an invalid keyword argument for this function?
  • Binding checkboxes to object values in AngularJs
  • Unable to use reactive element in my shiny app
  • How to push additional view controllers onto NavigationController but keep the TabBar?