由于公司现阶段大多数应用软件都是基于Windows系统开发和部署,很多软件安装部署都是在windows server 2012.windows server 2008之类的服务器上,部门同事每次测试一轮迭代或者系统测试后,在写测试报告时都需要在报告中写上测试的服务器硬件配置,如CPU.操作系统版本.内存.磁盘等,需要去远程服务器然后在服务器上各种查看服务器配置,比较浪费时间.最近学习了Python相关的知识,发现使用PYWIN32+WMI模块可以获取windows系统基本信息,并安装pyinst
You can use Impacket (https://github.com/CoreSecurity/impacket) that has WMI implemented in Python. There are two examples that might be useful: 1) https://github.com/CoreSecurity/impacket/blob/master/examples/wmiquery.py: It allows to issue WQL quer
PEP 324 -- subprocess 新的进程模块(subprocess - New process module) 英文原文:https://www.python.org/dev/peps/pep-0324/ 采集日期:2021-05-13 PEP: 324 Title: subprocess - New process module Version: $Revision$ Author: Peter Astrand astrand@lysator.liu.se Status: Fina