简体   繁体   中英

How can I get full OS information without calling powershell?

ARCH:x86-x64如何获取有关OS的完整信息(体系结构,OS名称,OS版本,安装的语言等),例如systeminfo ,但不使用cmdpowershell但是大多数cmdpowershell命令不可用Windows 7的早期版本,或者仅此命令可能无法执行。

You should try psutil . It supports Windows as well as Mac and Linux. You can get started with psutil/host.PlatformInformation to retrieve OS name and version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM