【发布时间】:2019-06-20 20:51:53
【问题描述】:
运行此脚本:
$FormatEnumerationLimit =-1
Get-WmiObject WmiMonitorID -Namespace root\wmi
$Monitors = Get-WmiObject WmiMonitorID -Namespace root\wmi
$LogFile = "C:\Users\monkeygead\Desktop\monitors.txt"
"Manufacturer,Name,Serial"
ForEach ($Monitor in $Monitors)
{
$Manufacturer = ($Monitor.ManufacturerName -notmatch 0 | ForEach{[char]$_}) -join ""
$Name = ($Monitor.UserFriendlyName -notmatch 0 | ForEach{[char]$_}) -join ""
$Serial = ($Monitor.SerialNumberID -notmatch 0 | ForEach{[char]$_}) -join ""
"$Manufacturer,$Name,$Serial"
}
它正在输出:
戴尔,戴尔 U415,CV9N64604TL
戴尔,戴尔U415,CV9N81S1C6S
为什么制造商报告为 DEL 而不是 DELL,型号报告为 DELL U415 而不是 DELL U2415?
【问题讨论】:
-
监视器 ROM 中的存储空间很小。非常非常非常小。 [grin] 所以你只会找到他们有空间的东西 - 优先考虑 SN。