Posted on October 10, 2020 at 5:16 pm
Use WMIC to get useful hardware details on a Windows PC:
Get serial number of local computer:
wmic bios get serialnumber /format:list |
Get RAM part and serial number:
wmic memorychip get PartNumber,SerialNumber /format:list |
Get processor name:
wmic cpu get Name / format:list |
Get computer manufacturer, model and serial number:
wmic baseboard get product, serialnumber, manufacturer / format:list |
Get last config UUID, vendor, model and identifying number:
wmic csproduct get uuid, vendor, name, identifyingnumber /format:list |
Windows UUID can be gathered via registry at:
HKEY_LOCAL_MACHINE\SYSTEM\HardwareConfig -> LastConfig (REG_SZ) |
* Works in Win 8/10 and 10XPE but not in Win 7
Get HDDs serial number:
wmic diskdrive get serialnumber |
Other Posts
- Set OpenVPN to Listed on a Specific IP Address
- Bash Trim Leading and Trailing Whitespace from a String
- Bash Get Name of Ethernet Network Interface
- VPN Providers with Dedicated Static IP Address
- OpenVPN Iptables Rules
- WireGuard VPN Iptables Rules
- How to Install WireGuard VPN in Debian 10 Buster
- Bash: No space left on device (inodes issue)
Updated Posts
- Add Desktop shortcut for all Windows PC users
- How to pass custom command-lien parameters in InnoSetup
- Programmatically create desktop icon with InnoSetup
- GeneratePress - a Lightweight WordPress Theme 2021
- InnoSetup disable DesktopIcon via command-line
- Use cURL to authenticate with JWT Bearer tokens
- Detect VMWare Virtual Machine
- Detect Microsoft Virtual PC Virtual Machine