Service Tag

  • Thread starter Robert B. Phillips II
  • Start date
R

Robert B. Phillips II

I am looking for a simple way to embed service tag numbers on machines
to be accessed remotely. We have around 100 Dell machines in various
geographic locations and we would like to be able to view the service
tag number of these machines anytime without human intervention, i.e.
have to call the location and have someone read the tag to me.

What I was wondering is, is there a simple solution for embedding the
service tag number somewhere in the registry and then simple querying
that registry key remotely to via the service tag?

I want a solution that is hard to break, i.e. user cannot accidently
delete the .txt file that contains that information. The registry
seems like the safest place in accordance with our security policy -
admins can access the registry and make changes, users cannot.

Any additional ideas or ideas for the registry idea would be greatly
appreciated.

Robert
 
G

Guest

Okay Okay.
Then I ran it on my Dell laptop and removed 2 lines.
So, I saved the following code in a text file named "blah.vbs"
Having the user double click the file will produce a pop-up dialog box
containing the service tag. Pretty cool.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSMBIOS = objWMIService.ExecQuery _
("Select * from Win32_SystemEnclosure")
For Each objSMBIOS in colSMBIOS
Wscript.Echo "Serial Number: " & objSMBIOS.SerialNumber
Next

SOOOOOO......

You want to obtain this information remotely.
Rather than echoing the command, use some simple VB code to instead redirect
output to a file.
You may even be able to substitute the "." in the first line with the actual
computer name, and retrieve the info remotely.
Of course, you'd be wise to perform this operation before the target
computer crashes, thus necessitating a now inaccessible service tag number.

Good luck

Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top