• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 727
  • Last Modified:

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 !!
0
Bianchi928
Asked:
Bianchi928
1 Solution
 
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now