我一直在使用WMI查询某些硬件信息。以下PowerShell脚本列出了我获取的所有信息,它们混合在一起并加密以生成短字符串。我们注意到今天更换了字符串,CPU,BIOS和主板都没有更改。
function Output-WMI
{
param([String]$path, [String]$prop)
"{0,15} - {1,-18}: {2}" -f $path, $prop, (wmic path $path get $prop)[2].Trim()
}
Output-WMI "Win32_Processor" "UniqueId"
Output-WMI "Win32_Processor" "ProcessorId"
Output-WMI "Win32_Processor" "Name"
Output-WMI "Win32_Processor" "Manufacturer"
Output-WMI "Win32_Processor" "MaxClockSpeed"
Output-WMI "Win32_BIOS" "Manufacturer"
Output-WMI "Win32_BIOS" "SMBIOSBIOSVersion"
Output-WMI "Win32_BIOS" "IdentificationCode"
Output-WMI "Win32_BIOS" "SerialNumber"
Output-WMI "Win32_BIOS" "ReleaseDate"
Output-WMI "Win32_BIOS" "Version"
Output-WMI "Win32_BaseBoard" "Model"
Output-WMI "Win32_BaseBoard" "Manufacturer"
Output-WMI "Win32_BaseBoard" "Name"
Output-WMI "Win32_BaseBoard" "SerialNumber"
有谁知道如何更改这些硬件信息?
我们知道没有安装更新。我们知道今天,Win32_BaseBoard类没有返回实例(返回消息是'没有可用的实例')。