windows 获取pc信息

2021-03-14 15:27

阅读:685

标签:wmic   temp   name   color   conf   version   product   output   windows   

 

@echo off
set log=D:\%COMPUTERNAME%_%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.log
echo "当前用户名">>%log%
whoami>>%log%

echo "计算机名:">>%log%
hostname>>%log%

echo "软件一览">>%log%
set templog=D:\temp.log
wmic /OUTPUT:%templog% product get name,version,vendor
type %templog% >> %log%
del /Q %templog%

echo "IP地址信息">>%log%
ipconfig | findstr /I "IPv4" >> %log%

 

windows 获取pc信息

标签:wmic   temp   name   color   conf   version   product   output   windows   

原文地址:https://www.cnblogs.com/goozgk/p/12468827.html


评论


亲,登录后才可以留言!