Hi there!
the code snippet
---
strComputerName = "."
strWinMgt = "winmgmts://" & strComputerName & ""
Set compsysset = GetObject(strWinMgt).ExecQuery("select * from
Win32_SystemEnclosure")

For Each CompSys In compsysset
MsgBox CompSys.SMBIOSAssetTag
Next
---
gives me the WMI Asset Tag.
Is there a way to (over)write this value? As far as I see it is built in in
the computer by the manufacturer, but I would like to use it to store the
Asset Number of the PC from our Asset Management Database...

Re: How to write the WMI Asset Tag by Torgeir

Torgeir
Thu Sep 09 16:17:27 CDT 2004

Ulf Kirsten wrote:

> Hi there!
> the code snippet
> ---
> strComputerName = "."
> strWinMgt = "winmgmts://" & strComputerName & ""
> Set compsysset = GetObject(strWinMgt).ExecQuery("select * from
> Win32_SystemEnclosure")
>
> For Each CompSys In compsysset
> MsgBox CompSys.SMBIOSAssetTag
> Next
> ---
> gives me the WMI Asset Tag.
> Is there a way to (over)write this value? As far as I see it is built in in
> the computer by the manufacturer, but I would like to use it to store the
> Asset Number of the PC from our Asset Management Database...
Hi

Updating BIOS from inside Windows is not possible (unless your
motherboard/BIOS manufacturer have come up with something ingenious):

http://groups.google.com/groups?threadm=e6pIXEr2DHA.1720%40TK2MSFTNGP10.phx.gbl

--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx