Re: service tags
- From: Matthew Hudson <MatthewHudson@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Aug 2006 12:35:01 -0700
If you check the bios under HW inventory (make sure it is enabled in your
sms_def.mof) you fill find your asset tag from Dell.
If you want both the asset tag and the express service code then you will
need to be running the latest OMCI from dell. Then add a section to your
sms_def.mof file. This will allow sms to communcate through WMI with the
dell. You will be able to get alot more information from the Dell. You will
also be able to change the settings in the BIOS through WMI. But only if
this client is installed.
"Les" wrote:
There's a way to do this outside of SMS....
Here's the base script from the Scripting Guide edited to do the local
machine (represented by the "."), change the . to machine names seperated by
commas "pc1, pc2, pc3" if you want to run it remotely. You can also modify
the script to dump output to a .txt file (which you should do anyway) and
then you could use PSEXEC to run it remotely and copy the files to a network
share. As always test it before you go doing any of the above in a
production environment. I named it BiosVer.VBS and it gives you the PC
serial number and BIOS revision. This may not work the same way on non-Dell
PCs as they may not contain the serial number of the PC in the BIOS.
Keep in mind this may get all wanky formatting wise...
**BEGIN COPY/PASTE at On Error...**
On Error Resume Next
Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20
arrComputers = Array(".")
For Each strComputer In arrComputers
WScript.Echo
WScript.Echo "=========================================="
WScript.Echo "Computer: " & strComputer
WScript.Echo "=========================================="
Set objWMIService = GetObject("winmgmts:\\" & strComputer &
"\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_BIOS", "WQL",
_
wbemFlagReturnImmediately +
wbemFlagForwardOnly)
For Each objItem In colItems
WScript.Echo "SerialNumber: " & objItem.SerialNumber
WScript.Echo "SMBIOSBIOSVersion: " & objItem.SMBIOSBIOSVersion
WScript.Echo
Next
Next
Function WMIDateStringToDate(dtmDate)
WScript.Echo dtm:
WMIDateStringToDate = CDate(Mid(dtmDate, 5, 2) & "/" & _
Mid(dtmDate, 7, 2) & "/" & Left(dtmDate, 4) _
& " " & Mid (dtmDate, 9, 2) & ":" & Mid(dtmDate, 11, 2) & ":" &
Mid(dtmDate,13, 2))
End Function
**END COPY/PASTE at End Function**
If you're not familiar with running VBScipts I would pass on this but it is
a way to do what you want.
"ozzy" <ozzy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3126B05C-6499-4AED-99A1-9D7501B9D627@xxxxxxxxxxxxxxxx
Is it possible to create a collection for service tags?
- References:
- Re: service tags
- From: Les
- Re: service tags
- Prev by Date: sms 2003 error!
- Next by Date: Re: MOF Edit not working
- Previous by thread: Re: service tags
- Next by thread: Troubleshooting Software Inv Discrepancies
- Index(es):
Relevant Pages
|