I already have the Service Tag in the BIOS Serial Number field listed in and I would like to update the computers "System Description"

In kbox1000 admin interface:
Inventory/Computers/ - Click on individual Computer
Under Inventory Information, expand Hardware

Bingo! "BIOS Serial Number" in the KACE database *SOMEWHERE* ??????

WHY do I want this? It is our policy to use the Service Tag (aka BIOS Serial Number) as the
"System Description".

Over time we do not have the correct System Description (per our policy) in some computers. See example below.

Is something I can fix programmatically with KACE ?

Ross Warren
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


Hey Ross,

I think this code will do it.

Let me know if you need help setting up the script in the scripting module of the 1000.

Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colBIOS = objWMIService. _
ExecQuery("Select SerialNumber from Win32_BIOS")

For Each objBIOS in colBIOS
strDescription = objBIOS.SerialNumber

strKeyPath = "System\CurrentControlSet\Services\lanmanserver\parameters"
strValueName = "srvcomment"

Set objRegistry = GetObject _
("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
objRegistry.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, strDescription
Answered 10/05/2010 by: dchristian
Red Belt

Please log in to comment