Service Tag

I'm looking to get a remote computer Service Tag displayed on my desktop computer. I know the Ip address of all the
remote computers and I have all admin rights. Is there any sort of VB program that will do the job for me ? They are all
Dell Optiplex. That's is pretty handy when it comes to log service calls.

please help !!
Bianchi928Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AntunbCommented:
a good tool is scriptomatic, that shows you lots of WMI commands, such as the one you are looking for
http://www.microsoft.com/downloads/details.aspx?familyid=09DFC342-648B-4119-B7EB-783B0F7D1178&displaylang=en


Save this as a .vbs file and run
Replace the . in arrComputers = Array(".") with the machine name

-------------------------------------------

On Error Resume Next

Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20

arrComputers = Array(".")
For Each strComputer In arrComputers
   WScript.Echo "Computer: " & strComputer

   Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
   Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystemProduct", "WQL", _
                                          wbemFlagReturnImmediately + wbemFlagForwardOnly)

   For Each objItem In colItems
      WScript.Echo "IdentifyingNumber: " & objItem.IdentifyingNumber
      WScript.Echo "Name: " & objItem.Name
      WScript.Echo "UUID: " & objItem.UUID
      WScript.Echo "Vendor: " & objItem.Vendor
   Next
Next

-------------------------------------------
0
Bianchi928Author Commented:
This works fine as long as it's the local computer (my computer) . But what I need is to be able to get the same infos from a remote computer. When I replace the "." with remote computer name , it only displays the computer and terminates (that's the first Wscript Echo)
0
AntunbCommented:
it means it cannot find the machine for some reason

instead of the dot or hostname try ip address

or try fully qualified domain name

ie. Computername.domain.com


it works here, try a different computer????? just to test that it works
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Craig_200XCommented:
not sure if you can do it, but we have the tag in the computername and use a program called whoami (http://www.kewlit.com/whoami/)

whoami puts the name of the pc and IP in the upperright corner of the screen... its also configureable to add other things... like desktop, name of user logon.. etc


whoamI is run as a logon script- but can be put in the all users startup profile...

0
Danny ChildIT ManagerCommented:
Dell Service Tag script:

============ copy everything below this line ==============
'
on error resume next
strComputer=WScript.Arguments.Item(0)
Set objWMIservice = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
set colitems = objWMIservice.ExecQuery("Select * from Win32_BIOS",,48)
For each objitem in colitems
      Wscript.echo "Dell Service Tag: " & objitem.serialnumber
Next
'
============= and stop just above this line ===============

then paste it into notepad, and save it as a *.vbs file - say delltag.vbs

run with
cscript delltag.vbs <PCname>

info
http://www.rokus.net/article206.html

note the info there about running across different domains.  
hth
Danny
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bianchi928Author Commented:
DanCh99

That works fine as long as the remote Computer is on the same Domain as where I'm running the cscript . What about if the remote computer is on a different Domain.

Thanks
Cheers

0
AntunbCommented:
1st did you try and use the full domain name in host? Computername.domain.com



ohhh thats proly why mine didnt work, because your PC is on a different domain.....


ok use dameware
http://www.dameware.com/downloads/
demo avaliable

1st copy the vbs file to that machine

open dameware
then on the right pane select domain
then computer
then remote command
then Rcmd View

and type the command there
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.