电脑出厂日期查看

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

@echo off

color 0a

title 硬件检测

mode con cols=90

sc config winmgmt start= auto >nul 2<&1

net start winmgmt 2>1nul

setlocal ENABLEDELAYEDEXPANSION

echo 主版:

for /f "tokens=1,* delims==" %%a in ('wmic BASEBOARD get Manufacturer^,Product^,Version^,SerialNumber /value') do (

set /a tee+=1

if "!tee!" == "3" echo 制造商= %%b

if "!tee!" == "4" echo 型号= %%b

if "!tee!" == "5" echo 序列号= %%b

if "!tee!" == "6" echo 版本= %%b

)

set tee=0

echo BIOS:

for /f "tokens=1,* delims==" %%a in ('wmic bios get

CurrentLanguage^,Manufacturer^,SMBIOSBIOSVersion^,SMBIOSMajorVersion^,SMBIOSMinorVer sion^,ReleaseDate /value') do (

set /a tee+=1

if "!tee!" == "3" echo 当前语言= %%b

if "!tee!" == "5" echo 发行日期= %%b

if "!tee!" == "6" echo 版本= %%b

if "!tee!" == "7" echo SMBIOSMajorVersion = %%b

if "!tee!" == "8" echo SMBIOSMinorVersion = %%b

)

set tee=0

echo.

echo CPU:

for /f "tokens=1,* delims==" %%a in ('wmic cpu get name^,ExtClock^,CpuStatus^,Description /value') do (

set /a tee+=1

if "!tee!" == "3" echo CPU个数= %%b

if "!tee!" == "4" echo 处理器版本= %%b

if "!tee!" == "5" echo 外频= %%b

if "!tee!" == "6" echo 名称及主频率= %%b

)

set tee=0

echo.

echo 显示器:

for /f "tokens=1,* delims==" %%a in ('wmic DESKTOPMONITOR get name^,ScreenWidth^,ScreenHeight^,PNPDeviceID /value') do (

set /a tee+=1

if "!tee!" == "4" echo 其他信息= %%b

if "!tee!" == "5" echo 屏幕高= %%b

if "!tee!" == "6" echo 屏幕宽= %%b

)

set tee=0

echo.

echo 硬盘:

for /f "tokens=1,* delims==" %%a in ('wmic DISKDRIVE get model^,interfacetype^,size^,totalsectors^,partitions /value') do (

set /a tee+=1

if "!tee!" == "3" echo 接口类型= %%b

if "!tee!" == "4" echo 硬盘型号= %%b

if "!tee!" == "5" echo 分区数= %%b

if "!tee!" == "6" echo 容量= %%b

if "!tee!" == "7" echo 总扇区= %%b

)

echo 分区信息:

wmic LOGICALDISK where mediatype='12' get description,deviceid,filesystem,size,freespace

set tee=0

echo.

echo 网卡:

for /f "tokens=1,* delims==" %%a in ('wmic NICCONFIG where "index='1'" get

ipaddress^,macaddress^,description /value') do (

set /a tee+=1

if "!tee!" == "3" echo 网卡类型= %%b

if "!tee!" == "4" echo 网卡IP = %%b

if "!tee!" == "5" echo 网卡MAC = %%b

)

set tee=0

echo.

echo 打印机:

for /f "tokens=1,* delims==" %%a in ('wmic PRINTER get caption /value') do (

set /a tee+=1

if "!tee!" == "3" echo 打印机名字= %%b

)

set tee=0

echo.

echo 声卡:

for /f "tokens=1,* delims==" %%a in ('wmic SOUNDDEV get name^,deviceid /value') do ( set /a tee+=1

if "!tee!" == "3" echo 其他信息= %%b

if "!tee!" == "4" echo 型号= %%b

)

set tee=0

相关文档
最新文档