检测 win10 硬件部分的 powershell
1.运行命令
C:\Users\hx>powershell -ExecutionPolicy Bypass -File "C:\Users\hx\Desktop\win10.ps1"
C:\Users\hx>powershell -ExecutionPolicy Bypass -File "C:\Users\hx\Desktop\win10.ps1"2.检测部分脚本
C:\Users\hx>powershell -ExecutionPolicy Bypass -File "C:\Users\hx\Desktop\win10.ps1" === 系统与主板基本信息 === CsManufacturer : To be filled by O.E.M. CsModel : To be filled by O.E.M. CsProcessors : {Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz, Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz} CsTotalPhysicalMemory : 137366904832 BiosManufacturer : American Megatrends Inc. BiosVersion : ALASKA - 1072009 BiosSMBIOSBIOSVersion : 4.6.5 OsName : Microsoft Windows 10 教育版 OsVersion : 10.0.19045 OsBuildNumber : 19045 WindowsInstallationType : === CPU 信息 === Name : Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz Description : Intel64 Family 6 Model 45 Stepping 7 MaxClockSpeed : 2701 NumberOfCores : 8 NumberOfLogicalProcessors : 16 SocketDesignation : SOCKET 0 Manufacturer : GenuineIntel Name : Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz Description : Intel64 Family 6 Model 45 Stepping 7 MaxClockSpeed : 2701 NumberOfCores : 8 NumberOfLogicalProcessors : 16 SocketDesignation : SOCKET 1 Manufacturer : GenuineIntel === 物理内存信息 === BankLabel : Node0_Bank0 Capacity : 34359738368 Speed : 1333 Manufacturer : Samsung PartNumber : M386B4G70BM0- MemoryType : 24 BankLabel : Node0_Bank0 Capacity : 34359738368 Speed : 1333 Manufacturer : Samsung PartNumber : M386B4G70DM0- MemoryType : 24 BankLabel : Node1_Bank0 Capacity : 34359738368 Speed : 1333 Manufacturer : Samsung PartNumber : M386B4G70DM0- MemoryType : 24 BankLabel : Node1_Bank0 Capacity : 34359738368 Speed : 1333 Manufacturer : Samsung PartNumber : M386B4G70DM0- MemoryType : 24 总物理内存: 127.93 GB === 磁盘与固态硬盘信息 === FriendlyName : HGST HUS728T8TALE6L4 Manufacturer : Model : HGST HUS728T8TALE6L4 Size : 8001563222016 MediaType : HDD HealthStatus : Healthy OperationalStatus : OK FriendlyName : SanDisk SD7SB6S256G1001 Manufacturer : Model : SanDisk SD7SB6S256G1001 Size : 256060514304 MediaType : SSD HealthStatus : Healthy OperationalStatus : OK --- 逻辑分区使用情况 --- 盘符 : C: 总大小_GB : 79.28 可用空间_GB : 23.5 可用百分比 : 29.65% 盘符 : D: 总大小_GB : 7452.02 可用空间_GB : 3549.59 可用百分比 : 47.63% 盘符 : E: 总大小_GB : 159.19 可用空间_GB : 59.58 可用百分比 : 37.43% === 电池信息 === 未检测到电池 (可能为台式机)。 === Wi-Fi 网卡信息 === 名称 : TP-LINK Wireless USB Adapter MAC地址 : 30:B4:9E:F9:4C:47 速度_Mbps : 75000065 DHCP启用 : True IP地址 : 192.168.1.4, fe80::bda3:14dc:73ff:ad, 2409:8a1e:9554:8720:e0b8:5623:20fe:50c1, 2409:8a1e:9554:8720:88c:c937:d4c1:4fe8 子网掩码 : 255.255.255.0, 64, 128, 64 默认网关 : 192.168.1.1, fe80::1 === 报告生成完成 === 是否导出报告为CSV文件? (Y/N):