问题
Is it possible to change the Motherboard serialNumber
value with WMI?
$SN = Get-WmiObject Win32_BaseBoard
$SN.SerialNumber="123456"
$SN.put()
$SN.SerialNumber
The error I got was:
Exception calling "Put" with "0" argument(s): "Provider is not capable of the attempted operation "
回答1:
In short no. I wouldnt expect that to work. The properties of Win32_BaseBoard
are read-only as per MSDN
SerialNumber
Data type: string
Access type: Read-only
Assuming your BIOS supports it, in most cases, you would have to change it there. That's what i did for some old dells boards to keep our inventory in check.
来源:https://stackoverflow.com/questions/26678153/windows-wmi-change-the-value-of-motherboard-serialnumber