Thanks,
Matthew
On Error Resume Next
Set oWMI = GetObject("winmgmts:")
For Each bios In oWMI.InstancesOf("Win32_SystemEnclosure")
' add a var
WIUNUMtmp = bios.SMBIOSAssetTag
WIUNUM = Left(WIUNUMtmp,6)
oEnv("WIUNUM") = WIUNUM
For Each objBIOS in oWMI.InstancesOf("Win32_BIOS")
oENV("SN")= objBIOS.SerialNumber
> I would like a way that our helpdesk can verify and change the AssetTagInfo
> of users machines as they call in. I currently use this script to get the
> AssetTag and SerialNumber out of the bios and set it to a variable for use
> later on, but I now need a way to change it if it is wrong. I have been
> looking high and low for a way to change it, but I get the feeling it can't
> be done using VBS scripting... Does anyone have an idea?
Hi
Not with WMI at least.
I have never heard of a utility that can update the BIOS information while
running under Windows. The ones I have heard about/used can only do this from
DOS (booting on e.g. a Win98 diskette or a DOS 6.x diskette), and the utilities
is special made for the different manufacturers, e.g. Dell has one called
asset.com.
--
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
Matthew
"Torgeir Bakken (MVP)" <Torgeir.B...@hydro.com> wrote in message
news:40057741...@hydro.com...
I agree with Torgeir that there is no such windows application which can
write the BIOS. Some MainBorad productor provides utilites which can
rewrite the BIOS. However, they can only write BIOS within their brand, not
universal.
Luke
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Matthew
"MSFT" <luke...@online.microsoft.com> wrote in message
news:qBQhQww2...@cpmsftngxa07.phx.gbl...