powershell 收集系统信息脚本如何编写


PowerShell交流中心 › 分类: Powershell基础 › powershell 收集系统信息脚本如何编写
0 赞 踩
Q1493010886 asked 9 年 ago

收集当前系统环境的ip、mac、端口、性能等信息

1 Answers
0 赞 踩
Mooser Lee 管理员 answered 9 年 ago

查询IP地址

PS> ipconfig

MAC地址

PS> Get-WmiObject win32_networkadapterconfiguration | select description, macaddress

端口信息

netstat

性能信息
用性能计数器,以内存为例:PowerShell获取和任务管理器中一致的进程内存