Skip to content

Instantly share code, notes, and snippets.

@doneykoo
Created February 19, 2024 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doneykoo/afc33ea7433cd3c0eaa51ec9ebf84ffa to your computer and use it in GitHub Desktop.
Save doneykoo/afc33ea7433cd3c0eaa51ec9ebf84ffa to your computer and use it in GitHub Desktop.
show device system infomations, like cpu bios os serial numbers and identifers, with wmic, on windows
:: CPU序列号
wmic cpu get processorid
:: 主板序列号
wmic baseboard get serialnumber
:: BIOS序列号
wmic bios get serialnumber
:: 操作系统序列号
wmic os get serialnumber
:: 机器名, 机型
wmic computersystem get name, model
:: 系统产品,序列号
wmic CSPRODUCT
:: 磁盘序列号
wmic diskdrive get serialnumber
:: context
wmic context
:: wmic help list
wmic /?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment