一行代码查看硬盘信息

1.使用方法:打开cmd执行或写入bat文件中执行均可,信息记录在桌面磁盘信息.txt中

2.名称含义:

model:型号,HealthStatus:状态,serialnumber:序列号,MediaType:类型,size:容量单位字节

powershell -command "& {get-physicaldisk|format-list -property model,healthstatus,serialnumber,mediatype,size}">%userprofile%\desktop\磁盘信息.txt

你可能感兴趣的:(windows,运维开发,运维)