/build/static/layout/Breadcrumb_cap_w.png

Detect serial number/servic tag

Hi folks! Does anyone here know how to have an image automatically detect serial number and also use that serial number to name the computer, instead of prompting the user for the computer name during mini setup?

0 Comments   [ + ] Show comments

Answers (1)

Posted by: wildpitch 19 years ago
Yellow Belt
0
Old'ish post but anyway I'm new here......

very easy to do but your workstation BIOS has to support it and you may have to alter the way your minisetup runs. I've been doing this for 3 or so years now and it works sweetly on NT / 2000 / XP providing you have WMI and WSH installed.

For starters copy and paste the code below into a text file on your desktop, rename it to something.vbs and see if you get anything returned on execution. If you do there's a whole heap of instruction on the MS Technet site about renaming comps, joining them to domains etc etc via scripts.


On Error Resume Next
Dim strTag
DIm vbCRLF

strComputer = "."
vbCRLF = chr(13)


Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_BIOS",,48)
For Each objItem in colItems
strTag = objItem.SerialNumber

Next
set oWSHShell = WScript.CreateObject("WScript.Shell")

msgbox strTag

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ